Paste Plain Text in RadRichTextBoxEditor
Environment
Product Version | Product | Author |
---|---|---|
2018.3.1016 | RadRichTextEditor for WinForms | Dimitar Karamfilov |
Description
When copying text from various sources the formatting is copied as well, the content may not look the same when pasted. For example when pasting from an HTML page. The below example demonstrates how you can intercept the paste command and strip all the styles.
Solution
The code below shows how you can intercept the paste command and replace the contents with plain text.