This is a migrated thread and some comments may be shown as answers.

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

1 Answer 59 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amy
Top achievements
Rank 1
Amy asked on 14 Mar 2012, 07:33 PM
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!

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Mar 2012, 01:54 PM
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.
Tags
Editor
Asked by
Amy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or