Importing this:
<p>This is a paragraph.</p>
<p>
This is a paragraph.
</p>
should import two identical paragraphs, but it actually import it like this:
This is a paragraph. This is a paragraph.
It has a leading space before the second paragraph.
Pasting adds an additional paragraph that does not exist in the source(copy).
The built-in Hyperlink style is not applied to hyperlinks imported from HTML (<a> tag). As a result, the hyperlinks in the document does not have the blue underline.
- Import the following HTML: <a href="http://google.com">test</a>When adding a new document to the same instance of a RichTextEditor, the UIProviderRegistry instance of the RichTextBox will keep a dictionary entry for a SectionLayoutBox that contains a reference to a non cleaned up WaterMarkUiProvider.
This SectionLayoutBox in turn has a reference to a DocumentLayoutBox (parent) which has a reference to an old document instance.
A new dictionary entry is added and (retained) for every document loaded.
Disposing the old document makes no difference.
One cannot paste when the AutomaticallyLoadFormatProviders property is false. Even if you register the format providers manually:
public MainWindow()If we copy-paste some french text; f.e. generated by https://fr.lipsum.com/:
This is the original text:
"Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500"
This is what we see if we past it inside the rich text component
Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500
htmlProvider.ExportSettings.StylesExportMode = StylesExportMode.Classes;
The cell BackColor should be set when setting the paragraph BackColor.
Workaround: use the table properties dialog to set the back color.