Unplanned
Last Updated: 31 Oct 2018 08:06 by ADMIN
ADMIN
Todor
Created on: 10 Oct 2016 11:23
Category: RichTextBox
Type: Bug Report
1
RichTextBox: HtmlFormatProvider: Font family and font size are locally set to Times New Roman and 12 to span elements during import
When a document is imported from HTML, we set locally to the span elements Times New Roman as a font family nevertheless it is not declared anywhere. The same applies for the font size as well - it is set to 12.

Workaround: Clear the FontFamily property after import

foreach (Span span in this.radRichTextBox.Document.EnumerateChildrenOfType<Span>())
{
    span.GetStyleProperty(Span.FontFamilyProperty).ClearValue();
    span.GetStyleProperty(Span.FontSizeProperty).ClearValue();
}
2 comments
ADMIN
Tanya
Posted on: 29 Mar 2018 11:40
Thank you, Jonathan. I confirmed the behavior and updated the item accordingly.
jdirienzi
Posted on: 18 Aug 2017 12:50
Also have to clear FontSizeProperty. or it will be set to 12.