Completed
Last Updated: 23 Nov 2016 11:07 by ADMIN
ADMIN
Hristo
Created on: 30 Apr 2015 07:34
Category: RichTextEditor
Type: Bug Report
1
FIX. RadRichTextEditor - font size of headings is not exported to RTF correctly
Workaround: explicitly set the font size of the spans in the heading paragraphs
foreach (Section section in this.radRichTextEditor1.Document.Sections)
{
    foreach (Block block in section.Blocks)
    {
        Paragraph p = block as Paragraph;
        if (p != null && p.StyleName == "Heading1")
        {
            foreach (var item in p.Inlines)
            {
                Span s = item as Span;
                if (s!= null)
                {
                    s.FontSize = p.FontSize;
                }
            }
        }
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments