I have a web application that is using your Kendo editor. The HTML output of the Kendo editor is saved in a database and can be opened in another WPF application to be edited in a RadRichTextBox. The HTML is imported as follows, where "editor" is a RadRichTextBox:
private
void
ImportHtml(
string
HTML)
{
HtmlFormatProvider _provider =
new
HtmlFormatProvider();
HtmlImportSettings settings =
new
HtmlImportSettings();
_provider.ImportSettings = settings;
settings.UseDefaultStylesheetForFontProperties =
true
;
editor.Document = _provider.Import(HTML);
}
When tables are created in the Kendo editor and imported to the RadRichTextBox, several issues are seen:
- Table, row, and cell heights are not maintained. All rows and cells become the same height.
- Cell padding is not correct. I can see the padding in the imported HTML as <td style="padding:5px;", but after import the padding is changed to padding: 5px 0px 0px 0px; (Padding="0,5,0,0" in the XAML).
- Table borders are not visible. The borders are still in the HTML and can be seen in the Table Borders properties dialog, but are not visible in the editor and seem to not always work correctly if modified in the Table Borders properties dialog. If cell spacing is added to the table in Kendo, then the borders will display in WPF. Therefore, it appears as if the outer cell borders are covering the table borders.
Please let me know if there is anything I am missing here that will provide proper display of the tables in the RadRichTextBox.
Thanks!