Unplanned
Last Updated: 31 Oct 2018 08:14 by ADMIN
ADMIN
Tanya
Created on: 18 Nov 2016 17:31
Category: RichTextBox
Type: Bug Report
2
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