Hello,
I am trying to use a RadEditor in a RadWindow using the fix described here but it is still not working.
I am trying in a brand new page, here is my code.
<
telerik:RadWindow
RenderMode
=
"Lightweight"
runat
=
"server"
ID
=
"RadWindowWithEditor"
AutoSize
=
"true"
VisibleOnPageLoad
=
"true"
OnClientShow
=
"fixEditor"
OpenerElementID
=
"Button5"
>
<
ContentTemplate
>
<
telerik:RadEditor
RenderMode
=
"Lightweight"
runat
=
"server"
ID
=
"RadEditor1"
Width
=
"700px"
Height
=
"300px"
>
<
Content
>
Lorem ipsum dolor sit amet
</
Content
>
</
telerik:RadEditor
>
</
ContentTemplate
>
</
telerik:RadWindow
>
<
script
type
=
"text/javascript"
>
function fixEditor()
{
console.log($find("<%=RadEditor1.ClientID %>"));
$find("<%=RadEditor1.ClientID %>").onParentNodeChanged();
}
</
script
>
I still get a Javascript error:
Uncaught TypeError: Cannot read property
'defaultView'
of undefined
at Object.isWindowDestroyed
at b.DefaultToolAdapter.setToolState
at b.DefaultToolAdapter._onEditorModeChange