When we use RADEditor and jQuery on the same page, IE 6/7/8 throw a script error during page unload.
We use $telerik.addExternalHandler and editor.attachEventHandler. No jQuery event handlers are used.
This is version 2010.1.519.35 of Telerik.Web.UI.
The exception is:
The JScript call stack:
The inner most anonymous function is from Telerik.Web.UI.Editor.RadEditor.js, and the call to
A workaround is to add the following as the last script on the page:
We use $telerik.addExternalHandler and editor.attachEventHandler. No jQuery event handlers are used.
This is version 2010.1.519.35 of Telerik.Web.UI.
The exception is:
Error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: element
The JScript call stack:
JScript anonymous function
JScript anonymous function
Sys$Application$_unloadHandler
Sys$Application$Dispose
JScript anonymous function
JScript anonymous function
Sys$Ui$DomEvent$removeHandler
The inner most anonymous function is from Telerik.Web.UI.Editor.RadEditor.js, and the call to
removeHandler
is from this code:},_registerModeChangeHandler:
function
(c){
if
(c){
this
._onModeButtonClickDelegate=Function.createDelegate(
this
,
this
._onModeButtonClick);
$addHandler(
this
._getModeButtonsWrapper(),
"click"
,
this
._onModeButtonClickDelegate);
}
else
{
if
(
this
._onModeButtonClickDelegate){$removeHandler(
this
._getModeButtonsWrapper(),
"click"
,
this
._onModeButtonClickDelegate);
this
._onModeButtonClickDelegate=
null
;
}}},_onModeButtonClick:
function
(h){
var
g=
this
.get_mode();
A workaround is to add the following as the last script on the page:
<!--[if IE]>
<
script
type
=
"text/javascript"
>
(function() {
var remove = window.$removeHandler;
window.$removeHandler = function(a,b,c) {
if (a) {
remove(a,b,c);
}
}
})();
</
script
>
<![endif]-->