[drupalImage] Caption images filter incompatible with CKEditor 5 image resizing

Created on 25 January 2023, almost 2 years ago
Updated 5 July 2023, over 1 year ago

Problem/Motivation

The caption image filter is not compatible with image resizing (i.e. <img width>). This is because with CKEditor 5, the width is provided in percentages. After wrapping the <img> with a <figure> element, the width attribute is still applied on the <img>. This means that the width is now calculated relative to the <figure> element.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: duplicate

Version

11.0 🔥

Component
CKEditor 5 

Last updated about 22 hours ago

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • JavaScript

    Affects the content, performance, or handling of Javascript.

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.71.5 2024