Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 127.79 KB
MD5: 4cbfefed83a80a9dafc0731d7c9e8141
SHA-1: 7a89e93f5e0e7c4761b800a077857c3581bbf0c7
SHA-256: 4f47ae0550da88b6e35d450e07005ac5b55176d5756f40c8effd10f4bb8da50e
Download zip 173.98 KB
MD5: efa010a7e8bf32da61a7ba290fa8f1a7
SHA-1: d487de1e8321f475c3fae41386c8bbcceca4ff22
SHA-256: 02bb6bd4e93d428dc83f7e802082e3703408f4192318329adef7eabdb2794bcb

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

Only local images are allowed.

Only local images are allowed.

After (beta10):

html

Only local images are allowed.
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

Only local images are allowed.
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.

Created by: nishchit.dayal
Created on: 7 Sep 2026 at 00:31 UTC
Last updated: 7 Sep 2026 at 00:31 UTC
Bug fixes
New features

Other releases