Let me provide you with more details what is happening. The paste process is controlled entirely by the Operating System and by the browser. The editor is not allowed to interfere in this process much (of course there are some minor differences between browsers). Thus, with respect to pasting - the original MS Word
formatting is not HTML. It is MS Word specific XML formatting. When this is exported to the clipboard, and is made available for paste, it "announces" what "paste flavors" it supports - and those would be MS Word, HTML, plain text, RTF and so on. When a client entity (such as the editor) wants to consume the content of the clipboard, it announces what paste formats it supports (and the editor - any editor - only supports plain text and HTML). So, MS Word converts the original MS Word to HTML, and this process is controlled entirely by MS Word, and not at all possible to interfere by the editor.
What you can do is to attach to the OnClientPasteHtml event
, check for the Paste command and modify the content returned by the args.get_value() method as per your requirements. After that set the modified content in RadEditor using the args.set_value(newContent) method.
Another approach is to set StripFormattingOptions="AllExceptNewLines" which will paste plain text in RadEditor. Once you obtain the RadEditor's content on the server you can wrap it in <span style="font-family: Verdana; font-size: 9pt;"></span>.
RadEditor is a web editor which can work and export HTML/XHTML content. If you need to store the content in MS Word doc / docx or XML format then you should use some third party control that will convert the HTML to DOCX XML format. This feature is not supported out-of-the box by the control.
We are currently working on export to RTF but it is currently not so enhanced, has limitations and does not offer image import or export. You can test it in this demo: Export to RTF
All the best,
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.