Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
1.0.0-beta10 — Strip CKEditor-injected absolute image dimensions
What's fixed
AlignmentRoundtrip — Absolute width and height pixel attributes injected by CKEditor's ImageSizeAttributes plugin are now stripped from images that use CSS for sizing.
After each image loads in the editing view, CKEditor reads its naturalWidth and naturalHeight and writes them as width="NNN" height="NNN" HTML attributes on downcast. For images already sized via CSS properties (max-height, max-width, width, height in the style attribute), these absolute pixel attrs conflict with CSS constraints and break responsive or constrained layouts.
Before (beta9):
html
![]()
![]()
After (beta10):
html
![]()
Behaviour
The post-processor only strips width="NNN" and height="NNN" where NNN is a plain integer from images that already carry CSS-based sizing in their style attribute. Images without any CSS sizing are left untouched — their explicit HTML dimensions are considered user-authored and intentional.
html
![]()
Upgrade notes
Drop-in replacement for beta9. No configuration changes required in the module itself. If you previously worked around this by setting allow_resize: false in your editor config, that setting can be left as-is — it controls the UI handles independently and does not conflict.