More in this section

Forums / Bugs & Issues / OnClientPasteHtml doesn't work for RadEditor in Html mode!!!

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

2 posts, 0 answered
  1. Le Phuoc Trung Tin
    Le Phuoc Trung Tin avatar
    1 posts
    Registered:
    08 Mar 2010
    26 Feb 2011
    Link to this post
    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
  2. Rumen
    Rumen avatar
    26 posts
    Registered:
    12 Sep 2017
    01 Mar 2011
    Link to this post
    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!
2 posts, 0 answered