[drupalImage] Add ckeditor5-image's imageresize plugin to allow image resizing

Created on 21 July 2021, almost 3 years ago
Updated 4 June 2023, about 1 year ago

Problem/Motivation

CKEditor 4 enables image resizing when width and height attributes are allowed by the HTML filter.

Proposed resolution

Similar to this, we should allow enabling image resizing in the UI. Instead of using the HTML filter as the trigger, we could provide checkbox in the plugin configuration form.

Remaining tasks

Reviews.

User interface changes

  • Image resizing available by default when image plugin is enabled.
  • Image resizing can be disabled in CKE5 admin UI.
  • Add the "original size" resize option to the image toolbar. This is a feature addition, but it is something built into CKEditor 5 and easy to incorporate, it just needs to be enabled in config. Not having a way to revert to original size in CKEditor 4 was a pain point - this is a simple, desirable addition.

API changes

See https://www.drupal.org/node/3262942

Data model changes

None.

Feature request
Status

Fixed

Version

9.3

Component
CKEditor 5 

Last updated less than a minute ago

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024