Hi,
The radeditor flickers a lot when using IE, when setting ContentMode to Div and using AutoResize to fit content height.
See the following sample:
Scroll down to the bottom and delete the line "Delete this row!", the entire page scrolls to the top of the Editor...
I have located the root of this behavior, it has to do with setFocus. Doing the following hack (commenting out the setFocus line):
The Editor works really smooth after this hack, but of course this might have bad side effects...
This fix also makes typing at the bottom of the Editor really smooth an nice!!!
Is this something you can fix with a real solution?
Regards
Andreas
The radeditor flickers a lot when using IE, when setting ContentMode to Div and using AutoResize to fit content height.
See the following sample:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
style
=
"overflow: auto"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
telerik:RadEditor
ID
=
"re2"
runat
=
"server"
AutoResizeHeight
=
"True"
ContentAreaMode
=
"Div"
>
<
Content
>
Some text<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
Delete this row!
<
br
/>
<
br
/>
<
br
/>
Some more text
</
Content
>
</
telerik:RadEditor
>
</
div
>
</
form
>
</
body
>
</
html
>
Scroll down to the bottom and delete the line "Delete this row!", the entire page scrolls to the top of the Editor...
I have located the root of this behavior, it has to do with setFocus. Doing the following hack (commenting out the setFocus line):
<
script
type
=
"text/javascript"
>
Telerik.Web.UI.RadEditor.prototype.executeCommand = function (radCommand, setFocus, addToStack)
{
//Set the editor's window
if (!radCommand.get_window())
{
radCommand.set_window(this.get_contentWindow());
}
//if (false != setFocus && !this.isOpera) this.setFocus(); //Opera has a problem! Typing is discontinued.
this._commandsManager.execute(radCommand, addToStack);
}
</
script
>
The Editor works really smooth after this hack, but of course this might have bad side effects...
This fix also makes typing at the bottom of the Editor really smooth an nice!!!
Is this something you can fix with a real solution?
Regards
Andreas