Unplanned
Last Updated: 25 Nov 2022 09:35 by Timo
Timo
Created on: 25 Nov 2022 09:35
Category: RichTextEditor
Type: Bug Report
0
RadRichTextEditor: Removing the last inline inside a paragraph in a measured document fails with NullReferenceException

If you remove the last span of a paragraph (on a measured document), using the inline collection, a NullReferenceException is thrown.

As a workaround: either make sure the manipulation happens on a non-measured document, or remove the span by using the RichTextEditor's API:

this.radRichTextEditor.Document.Selection.AddDocumentElementToSelection(span);
this.radRichTextEditor.Delete(false);

 

0 comments