$insertedText = ev.data;
}, null, null, 1);
event.editor.on('mode', function(ev) {
+ if ($.browser.mozilla && ev.editor.mode === 'wysiwyg') {
+ fixFirefox();
+ }
+
ev.editor.focus();
insertFakeSubmitButton(ev);
insertFakeSubmitButton(event);
// remove stupid title tag
- $(event.editor.container.$).find('.cke_wysiwyg_div').removeAttr('title');
+ $(event.editor.container.$).removeAttr('title');
+
+ if ($.browser.mozilla) {
+ fixFirefox();
+ }
});
/**
}
+ /**
+ * Disables object resizing and table handles in Firefox.
+ */
+ function fixFirefox() {
+ document.designMode = 'on';
+ document.execCommand('enableObjectResizing', false, false);
+ document.execCommand('enableInlineTableEditing', false, false);
+ document.designMode = 'off';
+ }
+
/**
* Removes obsolete dialog elements.
*/