git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
be188ff
)
edit: disable image resizing (plus workaround)
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 11 Jul 2014 16:07:59 +0000
(18:07 +0200)
committer
Mischa 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
patch
|
blob
|
history
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'],
];
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Link'],
['HorizontalRule', 'Table', 'Image'],
];
+
+ config.disableObjectResizing = true;
+ document.execCommand('enableObjectResizing', false, false); // workaround in inline mode; ff bug?
});
});
});
});