Approved
Last Updated: 24 Apr 2018 07:33 by ADMIN
ADMIN
Hristo
Created on: 26 Feb 2018 13:12
Category: RichTextEditor
Type: Feature Request
1
FIX. RadRichTextEditor - Add support for associated character properties when importing from RTF
Workaround: Handle the CommandExecuted event and change the font family after executing the paste command:

private void RadRichTextEditor1_CommandExecuted(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutedEventArgs e)
{
    if (e.Command is PasteCommand)
    {
        foreach (var p in this.radRichTextEditor1.Document.EnumerateChildrenOfType<Paragraph>())
        {
            if (p.IsInList)
            {
                var list = this.radRichTextEditor1.Document.ListManager.GetDocumentListById(p.ListId);
                list.ActualStyle.Levels[0].FontFamily = new Telerik.WinControls.RichTextEditor.UI.FontFamily("Symbol");
            }
        }
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments