Completed
Last Updated: 17 Nov 2014 13:03 by Svetlin
Svetlin
Created on: 26 Nov 2012 02:00
Category:
Type: Bug Report
1
FIX. Bullet list item's height is different when html export and import are performed.
Paragraph's height is different when html export and import are performed in the following way:

private void LoadRTB(RadRichTextBox RTB, string Txt)
{
    HtmlFormatProvider provider = new HtmlFormatProvider();
    HtmlImportSettings sett = new HtmlImportSettings();
    sett.UseDefaultStylesheetForFontProperties = true;
    provider.ImportSettings = sett;
    RTB.Document = provider.Import(Txt);
}

public string ExportHtml(RadRichTextBox RTB)
{
    HtmlFormatProvider provider = new HtmlFormatProvider();
    HtmlExportSettings sett = new HtmlExportSettings();
    sett.StylesExportMode = StylesExportMode.Inline;
    sett.DocumentExportLevel = DocumentExportLevel.Fragment;
    sett.ImageExportMode = ImageExportMode.UriSource;
    provider.ExportSettings = sett;
    return provider.Export(RTB.Document);
}

Resolution: 
This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox. 
0 comments