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

[Solved] RadEditor Paste functions and shortcuts not working in IE7

2 Answers 173 Views
Editor
This is a migrated thread and some comments may be shown as answers.
TCF Schepers
Top achievements
Rank 2
TCF Schepers asked on 17 Apr 2009, 12:03 PM
Hi there,

I am experiencing a problem with the RadEditor for ASP.Net AJAX. When I'm trying to paste content into my Radeditor on my page, IE7 causes 100% cpu usage and hangs. I have to use CTRL+ALT+DELETE to shut down IE. This is on my development machine. I use the standard RadEditor, all tools enabled. This problem occurs only in IE7, and not in other browsers. I do not get any errormessage's or whatsoever. The version I'm using is Q1 2009 (which I just downloaded, and I upgraded from Q3 2008, which had the same problem).

So I'm wondering what I should do to resolve this?
This is the code in my .ascx webcontrol:

<telerik:RadEditor id="rteTekst" Width="640px" Height="300px" Runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"></telerik:RadEditor>

Regards,
Thomas Schepers

2 Answers, 1 is accepted

Sort by
0
TCF Schepers
Top achievements
Rank 2
answered on 17 Apr 2009, 01:37 PM
UPDATE:

After a few hours of testing and experimenting (I was actually making a small sample project for the telerik team, so that the problem could be duplicated) I found the solution.

There was an onresize event called from the body tag, which somehow was called or something. This caused IE to hang. So I removed this eventhandler, and everything works perfectly.

This however doesn't resolve the issue I was experimenting with, so to duplicate it, please take a default aspx webform, put a radeditor and radscriptmanager on it and call some javascript function from the body-onresize eventhandler.

Regards,
Thomas Schepers
0
Rumen
Telerik team
answered on 21 Apr 2009, 03:36 PM
Hi Thomas,

When pasting content in the editor, the content is pasted to a hidden container where it is stripped and pasted in the editor. The container has width and height of 0px but the browser fires the onresize event, which slows down it.

Nevertheless, you can easily fix this problem by setting the StripFormattingOptions property to "NoneSupressCleanMessage", e.g.

<telerik:RadEditor id="RadEditor1" StripFormattingOptions="NoneSupressCleanMessage" runat="server"></telerik:RadEditor>

Therefore the editor will not evaluate the pasted content, it will not strip it and directly leave the browser to paste the content in the content area. Thus the onresize event will be not fired and you will not experience the reported problem.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
TCF Schepers
Top achievements
Rank 2
Answers by
TCF Schepers
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or