OnClientPasteHtml doesn't work for RadEditor in Html mod

Posted by Community Admin on 04-Aug-2018 05:06

OnClientPasteHtml doesn't work for RadEditor in Html mode!!!

All Replies

Posted by Community Admin on 26-Feb-2011 00:00

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

Posted by Community Admin on 01-Mar-2011 00:00

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

Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

This thread is closed