ct-align class overwriting align-center

Created on 28 May 2025, 9 days ago

Problem/Motivation

The "align-center" class added by CK Editor on images gets overwritten by the "ct-figure" class when used with Media.

Steps to reproduce

1. Add a photo Media item (for example, in Rich Text mode). Note that I do not mean a basic inserted image, like in the case of Basic HTML
2. In CK Editor, set it to align center and break text (or any other align-center mode).
3. It will be left alligned.

Weirdly, align-right does seem to work.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.11

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024