--- a/includes/clientside/tinymce/tiny_mce_popup.js Thu Jan 31 22:29:07 2008 -0500
+++ b/includes/clientside/tinymce/tiny_mce_popup.js Sat Feb 02 11:54:16 2008 -0500
@@ -46,9 +46,9 @@
return this.editor.getLang(n, dv);
},
- execCommand : function(cmd, ui, val) {
+ execCommand : function(cmd, ui, val, a) {
this.restoreSelection();
- return this.editor.execCommand(cmd, ui, val);
+ return this.editor.execCommand(cmd, ui, val, a || {skip_focus : 1});
},
resizeToInnerSize : function() {
@@ -93,8 +93,11 @@
func : function(c) {
document.getElementById(element_id).value = c;
- if (tinymce.is(document.getElementById(element_id).onchange, 'function'))
+ try {
document.getElementById(element_id).onchange();
+ } catch (ex) {
+ // Try fire event, ignore errors
+ }
}
});
},