[10.2] CKEditor 5 "left" alignment doesn't inject "text-align-left" class to elements

Created on 12 January 2024, 5 months ago
Updated 13 February 2024, 4 months ago

Problem/Motivation

CKEditor 5 in Drupal 10.2.x doesn't add the class "text-align-left" when the text is left align. It causes issues in RTL pages, where all the text is automatically positioned to the right, and the content editors cannot align it left.

Steps to reproduce

1. Enable the text alignment button in admin/config/content/formats
2. In any new or existing content, add some text and click the "align left" option in the WYSIWYG toolbar
3. Click the source button (in Full HTML profile) to check the injected classes
4. Save the content and inspect the element in the page

Proposed resolution

๐Ÿ› Bug report
Status

Postponed: needs info

Version

10.2 โœจ

Component
CKEditor 5ย  โ†’

Last updated 1 day ago

Created by

๐Ÿ‡ง๐Ÿ‡ทBrazil bruno.bicudo Braganรงa Paulista - Sรฃo Paulo

Live updates comments and jobs are added and updated live.
  • Regression

    It restores functionality that was present in earlier versions.

Sign in to follow issues

Comments & Activities

  • Issue created by @bruno.bicudo
  • Status changed to Postponed: needs info 5 months ago
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia larowlan ๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ.au GMT+10

    Can you reproduce this in a fresh install?

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil bruno.bicudo Braganรงa Paulista - Sรฃo Paulo

    @larowlan I recorded this evidence โ†’ from simplytest.me with a "Drupal Core" 10.2.1 sandbox.

    If you need it, I can also take an evidence from a local fresh environment.

    Thanks! :)

  • Status changed to Active 5 months ago
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia larowlan ๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ.au GMT+10

    Thanks

  • Status changed to Postponed: needs info 4 months ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium Wim Leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    So you're saying this used to work correctly in 10.0 and 10.1? ๐Ÿค”

Production build 0.69.0 2024