Approved
Last Updated: 06 Mar 2018 12:58 by ADMIN
ADMIN
Dimitar
Created on: 08 Nov 2017 12:07
Category: RichTextEditor
Type: Bug Report
0
FIX. RadRichTextEditor - PreferredTableWidth is not exported to HTML when StylesExportMode is set to Inline
To reproduce:
 - Add a table where the width is set to 100%
 - Import the table and the export it:
private void radButton_Click(object sender, RoutedEventArgs e)
{
    var provider = new HtmlFormatProvider();
    string text = File.ReadAllText(@"..\..\default.html");
    rtb1.Document = provider.Import(text);
}

private void radButton1_Click(object sender, RoutedEventArgs e)
{
    var provider = new HtmlFormatProvider();
    provider.ExportSettings.StylesExportMode = StylesExportMode.Inline;
    string content = provider.Export(rtb1.Document);
    File.WriteAllText(@"D:\test1.html", content);
}

Workaround:
 Leave the export mode intact.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments