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

Ctrl + V does not strip all formatting

2 Answers 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sangeetha
Top achievements
Rank 1
Sangeetha asked on 18 Mar 2015, 12:11 AM
Hi,
I have a RadEditor with StripFormattingOptions="AllExceptNewLines". Once the editor is loaded, if the user does a mouse-click followed by CTRL+V to paste html content, the html formatting is stripped successfully ONLY if there is a certain amount of time space between mouse-click and CTRL+V.
If the time gap is less, the following javascript exception is thrown and the formatting is not stripped.

Line: 2313
Error: 'parentNode' is null or not an object


We have users who do a quick Mouse+Click followed by CTRL+V and hence we see this bug quite often.
Please let me know if you have a workaround for this.
Any help is appreciated.

Thanks
Sangeetha

2 Answers, 1 is accepted

Sort by
0
Sangeetha
Top achievements
Rank 1
answered on 18 Mar 2015, 10:19 PM
Some more info on this bug:

If ContentAreaMode=”IFrame”  - there is no error 

If ContentAreaModel=”Div” - you workaround this error if you set default Content to be “<p>&nbsp;</p>”
0
Ianko
Telerik team
answered on 20 Mar 2015, 09:04 AM
Hi Sangeetha,

I tried to reproduce the same issue with this online demo (http://demos.telerik.com/aspnet-ajax/editor/examples/contentareamodediv/defaultcs.aspx), but to no avail. Could you please test on your end with the demo, and get back with exact steps to reproduce?

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Sangeetha
Top achievements
Rank 1
Answers by
Sangeetha
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or