Commit 73dddd4c authored by catch's avatar catch
Browse files

Issue #2626106 by Wim Leers, gceja, thpoul: The image button does not work...

Issue #2626106 by Wim Leers, gceja, thpoul: The image button does not work unless width+height attributes are allowed, even though those are optional
parent d62ca100
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
// the "image" command's CKEditor dialog with a Drupal-native dialog. // the "image" command's CKEditor dialog with a Drupal-native dialog.
editor.addCommand('editdrupalimage', { editor.addCommand('editdrupalimage', {
allowedContent: 'img[alt,!src,width,height,!data-entity-type,!data-entity-uuid]', allowedContent: 'img[alt,!src,width,height,!data-entity-type,!data-entity-uuid]',
requiredContent: 'img[alt,src,width,height,data-entity-type,data-entity-uuid]', requiredContent: 'img[alt,src,data-entity-type,data-entity-uuid]',
modes: {wysiwyg: 1}, modes: {wysiwyg: 1},
canUndo: true, canUndo: true,
exec: function (editor, data) { exec: function (editor, data) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment