OnClientPasteHtml doesn't work for RadEditor in Html mode!!! - Bugs & Issues - Bugs & Issues - Progress Community

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

 Bugs & Issues

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

  • 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
    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!