In Development
Last Updated: 10 Apr 2025 07:26 by ADMIN
Scheduled for 2025 Q2 (May)
ADMIN
Tanya
Created on: 18 Nov 2016 17:31
Category: RichTextBox
Type: Bug Report
3
RichTextBox: Importing RTF or DOCX document which contains hyperlink, adds simultaneously FieldRangeStart and HyperlinkRangeStart to the document

This causes some problems if the hyperlink is edited and the document is exported and imported again.

Workaround:

private void RadRichTextBox1_DocumentChanged(object sender, EventArgs e)
{
    var document = radRichTextEditor1.Document;

    var fields = document.EnumerateChildrenOfType<FieldRangeStart>();

    foreach (FieldRangeStart item in fields)
    {
        radRichTextEditor1.DeleteAnnotationRange(item);
    }
}

0 comments