RadEditor in RadWindow still not working despite onParentNodeChange

2 posts, 1 answers
  1. Gregory
    Gregory avatar
    25 posts
    Member since:
    Mar 2014

    Posted 21 Nov 2019 Link to this post

    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
  2. Answer
    Rumen
    Admin
    Rumen avatar
    14436 posts

    Posted 21 Nov 2019 Link to this post

    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.
Back to Top