OnClientPasteHtml doesn't work for RadEditor in Html mode!!!
Hi,
I am trying to use the "OnClientPasteHtml" in RadEditor to strip some content before it's displayed to user. It was successfully run in the design mode, but it seems not to work in the Html mode.
Is any body has any idea?
Many thanks in advance.
Alex
Hi Alex,
The OnClientPasteHtml event works only for design mode, because all editor's tools are designed to work in Design mode only. The content area of RadEditor in HTML mode is a standard textarea and the built-in tools of the editor are designed to work in the editable iframe area in design mode.
If you would like you can get a reference to this textarea in HTML mode via the editor.get_textArea() method and implement your own paste handling mechanism using the browser's API.
All the best,
Rumen
the Telerik team