ev.returnValue = false;
return false;
}
- if (editors && editors[key]) {
+ if (editors!=='undefined' && editors[key]) {
callEditor(key);
return stopEv(ev); // prevent default binding
}
} else if(cmd=='fc') { // set focus
_focus = data;
} else if(cmd=='js') { // evaluate js code
- eval(data);
+ setTimeout(function(){eval(data)}, 200); // timeout required by IE7/8
} else if(cmd=='rd') { // client-side redirection
window.location = data;
} else if(cmd=='pu') { // pop-up
// parentNode has style.display set to none
if (parentNode != document.documentElement) return null;
return res;
-}
\ No newline at end of file
+}