I am using the RadRichTextBox in my app and saving the results in a database in HTML format. I am using the HtmlFormatProvider for this purpose. I reload the saved results into the same app for more editing. During the reload process, the spacing between words changes. Usually, I get 2 spaces where there was one. After a second save, the anomoly levels out. But it appears that the format the provider creates the HTML string and the way the provider reads that same HTML string back in does not result in the same RadDocument format.
As an example, I create a RadDocument with the following line:
Normal Bold Italic Underline Normal (where Bold Italic and Underline are actually Bolded Italicized and Underlined, respectively)
When I convert that to HTML and back to a RadDocument, it comes out like this:
Normal Bold Italic Underline Normal (the Bold Italic and Underline stay, but notice the extra spaces between each of the first four words.
My export code looks like this:
HtmlFormatProvider exporter = new HtmlFormatProvider();
exporter.ExportSettings = new HtmlExportSettings()
DocumentExportLevel = DocumentExportLevel.Fragment,
StylesExportMode = StylesExportMode.Inline
ret = exporter.Export(radDocument);
ret = ret.Trim();
My import code looks like this:
RadDocument ret = new RadDocument();
HtmlFormatProvider importer = new HtmlFormatProvider();
ret = importer.Import(htmlString);