Problem/Motivation
When the image button is added to the ckeditor in a new text format that also has has the "Limit allowed html tags..." option enabled it adds <img data-caption data-align data-entity-uuid data-entity-type alt src> to the allowed tags list. The ckeditor button/widget however doesn't work unless the img tag contains height and width as well: <img width height data-caption data-align data-entity-uuid data-entity-type alt src> Manually adding width and height to the tag corrects the problem.
Doesn't work as in, the button appears in the editor but pressing it doesn't do anything (also no js errors), and double clicking or right clicking an existing image to edit it also doesn't do anything.
Proposed resolution
I'm not sure if width and height should be added to the tag automatically as well, or if the widget should work without them (as it doesn't appear to use them at all). It may have something to do with the original plugin setting width and height?
Would love it if someone more knowledgeable about the editor module took a look.
The related issue is the same issue originally reported under the ckeditor.module component.
Comments
Comment #2
wim leersExplained and fixed in #2626106-19: The image button does not work unless width+height attributes are allowed, even though those are optional.