If I setup the richtextbox content through the UI as shown in P1.png and try to restore it by pasting the generated html, I get instead P2.png. Expected to be the same.
I attached the sample project. We're using the recommended settings to use the same html in telerik reports, but can't find the reference on your site, it used on the on this link http://docs.telerik.com/devtools/wpf/controls/radrichtextbox/import-export/features-import-export-settings#htmlformatprovider
The same issue is observed with heading styles.
The HtmlExportSettings property PropertiesToIgnore can't be used to control how the paragraph or character properties of a list will be exported. Steps to reproduce: Create a document with a list of different levels. Set fp.ExportSettings.PropertiesToIgnore["li"].Add("margin-left"); Export to HTML. Observed: The PropertiesToIgnore doesn't work for paragraph properties of a list.
Finding text with regex for the last paragraph is not possible. This is caused by the fact that the search treats the last paragraph symbol as the last paragraph.
htmlProvider.ExportSettings.StylesExportMode = StylesExportMode.Classes;
Nested ol/ul list should be inside a <li> element of the list in which it is nested. For example:
<ul>
htmlProvider.ExportSettings.StylesExportMode = StylesExportMode.Inline;
Font weight, size and other current editing style properties are not preserved when document layout is performed, for example in the following cases: - the document is in web layout mode and the controls is resized - scroll bar changes its visibility. Steps to reproduce: - Set RadRichTextBox to Web layout mode. - Type a word, select it and make it bold. - Press enter and type a word - Repeat the previous step until RadRichTextBox height is reached and scrollbar appear. - Type a word. Expected: The last word is bold. Actual: The last word is not bold.
Applying negative LeftIndent or FirstLineIndent of a paragraph in web layout mode will visualize the paragraph to the left of RadRichTextBox boundaries.
var image =
this
.radRichTextBox.Document.EnumerateChildrenOfType<ImageInline>().First();
if
(image.Height == 10 && image.ImageSource.DecodePixelHeight == 0)
{
image.Height = image.ImageSource.Height;
}