edit: disable image resizing (plus workaround)
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 11 Jul 2014 16:07:59 +0000 (18:07 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 15 Jul 2014 11:50:32 +0000 (13:50 +0200)
Unwanted feature which will cause ugly results if accidentally used.

edit.js

diff --git a/edit.js b/edit.js
index 94e84cc19728757f11b9ba21f2db93b3884788e4..88b03e3ac4d5b1792960fd7e5ba86554276f4611 100644 (file)
--- a/edit.js
+++ b/edit.js
@@ -52,6 +52,9 @@ CKEDITOR.on('instanceCreated', function (event) {
                        ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Link'],
                        ['HorizontalRule', 'Table', 'Image'],
                ];
+
+               config.disableObjectResizing = true;
+               document.execCommand('enableObjectResizing', false, false); // workaround in inline mode; ff bug?
        });
 });