- Issue created by @agarzola
- 🇺🇸United States agarzola
This may be related to https://www.drupal.org/project/drupal/issues/3504628 🐛 Inline images are stretched in WYSIWYG UI when nested Active .
When a relatively large image is uploaded via CKEditor, the image is correctly scaled down to fit the editor and its options UI (which lets editors modify layout options and add paragraphs above and below the image) outlines the image tightly, as one would expect. However, after saving the page and going back to the editing form, the options UI no longer outlines the image tightly. Instead it stretches below the image because the options UI element (usually a figure
element) receives a style
attribute with height and width properties that correspond to the uploaded image’s original file dimensions. The width of the figure
is usually
Another difference between a freshly-uploaded image and one that was already present when loading the edit form is that a freshly-uploaded image’s sizing dropdown is set to “Original”, while the dropdown for images that were already present has a pixel size pre-selected (corresponding to the width of the original image).
Note that this only affects the way images are rendered in CKEditor, and not how they are rendered on the node URL once it has been saved.
Active
11.0 🔥
ckeditor5.module
This may be related to https://www.drupal.org/project/drupal/issues/3504628 🐛 Inline images are stretched in WYSIWYG UI when nested Active .