Javascript error after 4.3 upgrade
After upgrading to 4.3, every page on the frontend site throws a JavaScript error:
Error: Telerik.Web.UI.Editor is undefined
Source File: localhost:60876/ScriptResource.axd
Line: 522
Also see the attached screenshot of how it looks when debugging in Visual Studio.
Thanks,
Kevin
Same issue here.. the offending code shown below..
jQuery(document).ready(function() //fix align commands in RadEditor; remove when upgrading to Q3.2011 jQuery.extend(Telerik.Web.UI.Editor.Utils, ScriptResource.axd:522 Uncaught TypeError: Cannot read property 'Utils' of undefined execDocumentCommand: function (doc, commandName, value) var tempElement, tempText; if (!doc || !commandName) return false; try if(commandName == "JustifyNone" && !$telerik.isIE) return this.applyCustomJustifyNone(doc); else if ($telerik.isFirefox && this.isAlignCommand(commandName)) return this.firefoxCustomAlign(doc, commandName); else return doc.execCommand(commandName, false, value); catch (ex) var selection = new Telerik.Web.UI.Editor.Selection(doc.defaultView || window); var selElem = selection.getParentElement(); tempElement = document.createElement("br"); selElem.insertBefore(tempElement, selElem.firstChild); var result = doc.execCommand(commandName, false, value); return result; finally if(tempText)I isolated it to the HtmlField control inside a listi tem template that was used on that page. If you remove the HtmlField, which in my case was just setting the Text property from an Eval(), and replace it with a simple Eval() then it doesn't load that ajax resource. This might have some side effects depending on what content is being evaluated, as I believe some controls may perform specialized markup to the content, but its worth a try if you are stuck before Telerik has a patch.
Good Luck,
Steve
Thanks Steve! That did the trick.