As suggested in the orginal support ticket 1430154 I'm opening a separate bug reprot for the RadRichTextBox.
Visual Studio 2019 solution to reproduce the problem is attached to the bug report.
When the copied document fragment is replaced during paste within a single RadDocument:
ClipboardEx.SetDocument(new DocumentFragment(doc));
Ordered list are not pasted correctly.
Workaround:
Bypass paste and use the InsertFragment API
this.radRichTextBox.InsertFragment(new DocumentFragment(doc)); e.Cancel = true;
To reproduce:
This works fine when the list is selected with the mouse.
To reproduce:
protected override void OnClosing(CancelEventArgs e)
When the MEF catalog of RadRichTextBox is predefined, the PasteOptionsPopup is not automatically loaded and causes NullReferenceException in the presenter when the users press Ctrl or Esc.
Workaround: Add typeof(PasteOptionsPopup) to the catalog.
To reproduce:
- Select several words by holding the control key.
- Paste some text.
Result: the first word is replaced, the other are deleted
Expected: the text should be pasted in all selected places
Workaround:
private void RadRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)Use the attached project to reproduce:
- Click the first button so the image is changed
- Click the second button and examine the exported HTML
Expected: the Uri is exported
Actual: the Uri is not exported.
Workaround:
p.Inlines.AddAfter(image, image2);