Copy and paste between radeditors adds &nbsp and <br> when using Chrome

2 posts, 0 answers
  1. Amy
    Amy avatar
    113 posts
    Member since:
    Aug 2010

    Posted 14 Mar 2012 Link to this post

    Hi.  Has anyone experienced an issue when using Chrome and copying-pasting between RadEditors, the '&nbsp;' and '<br>' characters are inserted and the cursor automatically goes to the next line?

    I've done google searches, and it does seem this is an issue with other applications.  But I couldn't find anything mentioning Telerik.

    This issue doesn't happen in Firefox or IE; however, in Safari, even more HTML code is added then what appears when using Chrome.

    Does anyone have any advice or suggestions on how to handle this?

    Thanks!
  2. Rumen
    Admin
    Rumen avatar
    14437 posts

    Posted 16 Mar 2012 Link to this post

    Hello,

    You can attach to the OnClientPasteHtml event of RadEditor, check for the Paste command and strip the unwanted HTML from the content before pasting it in the content area.

    Greetings,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top