Drupal is a registered trademark of Dries Buytaert

ckeditor_media_resize

4,306 sites Security covered
View on drupal.org

Introduces the ability to arbitrarily re-scale image media embedded via Drupal core's media embed plugin in CKEditor5.

Features

Drupal core's ckeditor5 image embed feature allows scaling of images once an image is uploaded and inserted into the ckeditor5 instance. The rescaling works via draggable handles on each corner of an embedded image. Drupal core also allows embedding of images via the media embed ckeditor5 plugin. Unfortunately embedded media images can't be resized at this point and this module here adds exactly this missing functionality.

Post-Installation

In order to re-scale embedded image media in ckeditor5, follow these steps after installing it as usual via composer:

  1. Enable the module via the UI or via Drush.
  2. Head to /admin/config/content/formats, select the text format you want to enable media resizing for and edit the format.
  3. Enable the Media embed button in the toolbar configuration by drag and dropping it from the available buttons into the toolbar.
  4. Enable the filters Limit allowed HTML tags and correct faulty HTML, Resize media images and Embed media. The Resize media images filter needs to run before the Embed media filter.
  5. Configure the Embed media filter to allow at least the Image media bundle to be inserted. Resizing for other media bundles is not supported at this point.

Activity

Total releases
3
First release
Sep 2025
Latest release
5 months ago
Release cadence
2 days
Stability
67% stable

Release Timeline

Releases

Version Type Release date
1.1.0 Stable Sep 30, 2025
1.1.x-dev Dev Sep 27, 2025
1.0.1 Stable Sep 27, 2025