I have selected some section of a webpage from my browser, copied and pasted it to the formatted document field of an 1C:Enterprise database. Afterwards when I save and reopen the catalog element which contained the formatted document field, I see that the formatting of the copy pasted text has got corrupted (such that too large line spacing of the text etc.).
How can I fix this?
Web pages contain many different tags and formatting, and text using these formatting and tags may appear differently when copy pasted depending on the regional settings, font settings etc. of the individual computer.
Since there is no standard in this respect, it is not feasible/impossible to implement a solution which would always transfer the copy pasted section perfectly. If you encounter such problem, as a work around, try copying parts of the web page individually rather then as a whole and paste to the formatted document as plain text, without formatting. Afterwards, set the formatting as you please using the included tools of the formatted document field.
You can also try to copy paste from the browser to a word processor such as Microsoft Word first, and afterwards copy paste from the word processor to the 1C:Enterprise formatted document field, this way you may be able to retain the formatting of the text, leaving no need to reformat it using the included tools of the formatted document field.