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

RadEditor event handling causing exception in Chrome

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 27 Aug 2012, 06:13 PM
Hello,

This bug seems to be specific to Chrome. I'm currently using Chrome version 21.0.1180.79 m. RadEditor seems to be hijacking event handling to cause an exception in RadSplitter. The error that I'm getting is "Uncaught TypeError: Cannot read property 'tagName' of null". It's taken me a bit to narrow it down, but the following code reproduces. I'm using Telerik.Web.UI version 2011.3.1115.35

Steps to reproduce this error:
1. Click on the RadEditor to give it focus.
2. Try to slide the RadSplitter

Results: The split bar moves faster than your cursor. See stack trace below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadSplitter ID="pageSplitter" runat="server" LiveResize="True" Height="800px" Width="1200px">
          
            <telerik:RadPane ID="RadPane1" runat="server" Width="250px" MinWidth="250">
                <asp:Panel ID="pnlNavTree" runat="server">                     
                     
                </asp:Panel>                       
            </telerik:RadPane>
       
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" />
       
            <telerik:RadPane ID="RadPane2" runat="server" Scrolling="None">
                <asp:Panel ID="pnlRightPane" runat="server">
                    <telerik:RadEditor runat="server" ID="Editor"></telerik:RadEditor>
                </asp:Panel>
            </telerik:RadPane>
         
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>

Stack Trace:
Uncaught TypeError: Cannot read property 'tagName' of null Telerik.Web.UI.WebResource.axd:9418
Telerik.Web.UI.Editor.Selection.getParentElement Telerik.Web.UI.WebResource.axd:9418
a.RadEditor.getSelectedElement Telerik.Web.UI.WebResource.axd:9896
a.RadEditor.getToolValue Telerik.Web.UI.WebResource.axd:9928
Telerik.Web.UI.Editor.DefaultToolAdapter.setToolState Telerik.Web.UI.WebResource.axd:6740
Telerik.Web.UI.Editor.DefaultToolAdapter._onEditorSelectionChange Telerik.Web.UI.WebResource.axd:6891
(anonymous function) Telerik.Web.UI.WebResource.axd:6
(anonymous function) Telerik.Web.UI.WebResource.axd:6
Telerik.Web.UI.RadWebControl.raiseEvent Telerik.Web.UI.WebResource.axd:778
Type.callBaseMethod Telerik.Web.UI.WebResource.axd:6
a.RadEditor.raiseEvent Telerik.Web.UI.WebResource.axd:9661
a.RadEditor.set_html Telerik.Web.UI.WebResource.axd:10229
a.RadEditor.onParentNodeChanged Telerik.Web.UI.WebResource.axd:9884
a.RadEditor.repaint Telerik.Web.UI.WebResource.axd:10489
window.$telerik.window.TelerikCommonScripts.Telerik.Web.CommonScripts.repaintChildren Telerik.Web.UI.WebResource.axd:96
a.RadPane.set_width Telerik.Web.UI.WebResource.axd:2411
a.RadSplitter._resizeTwoPanesWithDelta Telerik.Web.UI.WebResource.axd:1664
a.RadSplitter._resizeAdjacentPane Telerik.Web.UI.WebResource.axd:1669
a.RadSplitter._resizePanes Telerik.Web.UI.WebResource.axd:2056
a.RadPane.resize Telerik.Web.UI.WebResource.axd:2421
a.RadSplitBar.onDrag Telerik.Web.UI.WebResource.axd:2819
a.ResizeExtender._raiseDragEvent Telerik.Web.UI.WebResource.axd:3526
a.ResizeExtender._resize Telerik.Web.UI.WebResource.axd:3608
a.ResizeExtender._onDocumentMouseMove Telerik.Web.UI.WebResource.axd:3675
(anonymous function)

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 28 Aug 2012, 10:21 AM
Hi,

Could you please upgrade to Q1 2012 SP1 (version 2012.2.724) where this problem should be fixed?


All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Michael
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or