Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

CKEditor Media Resize

5,153 sites Security covered
View on drupal.org

This module adds the ability to resize image media embedded within CKEditor5. It allows users to adjust the size of embedded images directly in the editor using draggable handles.

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
9 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

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