[upstream] CKEditor 5 table properties' "center alignment" does not work

Created on 15 December 2023, 11 months ago
Updated 1 March 2024, 9 months ago

Problem/Motivation

Steps to reproduce

1. Add a table in ckeditor5 editor of node.
2. Choose center alignment in table properties.
3. View the node.

The table is shown left aligned due to lack of appropriate style properties.

Proposed resolution

To implement below suggestions from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table instead of using CSS float property in ckeditor5 library (Issue https://github.com/ckeditor/ckeditor5/issues/15535 raised in ckeditor5 issue queue)

Set margin-left and margin-right to achieve an effect that is similar to the align attribute:

left: margin-right: auto; margin-left: 0;
center: margin-right: auto; margin-left: auto;
right: margin-right: 0; margin-left: auto;

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component
CKEditor 5 

Last updated about 7 hours ago

Created by

🇮🇳India sumit_saini

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

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024