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

Error Trying to Use set_html Function

3 Answers 48 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alison
Top achievements
Rank 1
Alison asked on 27 Mar 2019, 02:37 PM

Hi Everyone,

I am trying to use set_html function (besides other functions) but for some reason it stoped to work properly some weeks ago. Maybe related to jQuery version update, I don't know. This issue is freaking me out and I don't know how to solve it since it looks like something internal. Below you can see what I am saying, the error that I am facing.

 

Uncaught TypeError: Cannot read property 'selection' of undefined
    at b.Selection.getRange (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:11847)
    at b.Selection.getParentElement (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:11857)
    at Telerik.Web.UI.Editor.TableInsertColumn.getSelectedCell (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6130)
    at Telerik.Web.UI.Editor.TableInsertColumn.getState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6179)
    at c.RadEditor.getToolState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:12870)
    at b.DefaultToolAdapter.setToolState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:16231)
    at b.DefaultToolAdapter._onEditorSelectionChange (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:16408)
    at Array.<anonymous> (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6)
    at Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6
    at c.RadEditor.raiseEvent (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:1038)

 

Could you guys help me to figure this out?

 

Thanks in advance!

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 27 Mar 2019, 04:59 PM
Hi Alison,

Can you please download the latest internal build Telerik_UI_for_ASP.NET_AJAX_2019_1_318_Trial_hotfix.zip from https://www.telerik.com/account/product-download?product=RCAJAX -> Internal Builds and test it?

If the problem still persists, please provide a simple runnable project which demonstrates the error along with steps to reproduce it so that I can debug it? 

The set_html() method can be also tested online at https://demos.telerik.com/aspnet-ajax/editor/examples/clientsideapi/defaultcs.aspx -> Demo Configurator -> Content tab. Do you reproduce the error in the demo?

Best 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.
0
debett
Top achievements
Rank 1
answered on 05 Apr 2019, 05:30 PM
I'm experiencing the same issue when the editor is located inside radwindow. Trying the latest internal build didn't help.
0
Rumen
Telerik team
answered on 08 Apr 2019, 01:07 PM
Hi Thomas,

I just answered your support ticket on the matter.

The problem was due to that the OnClientShow="betterFixForEditor" property is set to RadEditor, but not to RadWindow.

Please set it to RadWindow and test again:

<telerik:RadWindow ID="RadWindow1" OnClientShow="betterFixForEditor" runat="server" Modal="True" VisibleOnPageLoad="True">


In case the problem is other please provide a reproduction project in the support ticket so that I can help you right away.

Best 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.
Tags
Editor
Asked by
Alison
Top achievements
Rank 1
Answers by
Rumen
Telerik team
debett
Top achievements
Rank 1
Share this question
or