This is a migrated thread and some comments may be shown as answers.
RadEditor in RadWindow still not working despite onParentNodeChange
1 Answer 7 Views
This is a migrated thread and some comments may be shown as answers.
Gregory
Top achievements
Rank 2
Gregory asked on 21 Nov 2019, 08:55 PM

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 22 Nov 2019, 12:50 AM

Hi Gregory,

I have good news that the problem is resolved as noted at https://feedback.telerik.com/aspnet-ajax/1400495-onparentnodechanged-causes-an-cannot-read-property-defaultview-of-undefined-error-in-chrome-73

Please upgrade to the latest version to apply the fix.

 

Regards,
Rumen
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Asked by
Gregory
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or