Lists not right aligning in CKeditor 5

Created on 20 September 2023, 9 months ago
Updated 13 October 2023, 8 months ago

Problem/Motivation

I am unable to right align lists elements.

When attempting to create a right aligned list using ckeditor 5, the text within the list is properly aligning to the right, however, the list element (ol,ul) themselves are not. This behaviour is different than the ckeditor 4 implementation of this module which does right align lists.

Steps to reproduce

  1. Create a ckeditor 5 text area.
  2. Create an ordered list and add a few items.
  3. Create an unordered list and add a few items.
  4. Apply 'right to left' styling for both lists.
  5. Observe that the text in the list is right aligned, but the lists themselves are not.

Proposed resolution

The ckeditor 4 implementation makes use of a list of guard elements. Each parent of the selected element is compared to the items in the guard list. The first element which matches an item in this list receives the dir attribute.

The ckeditor 5 implementation of this module should implement the same guard check.

πŸ› Bug report
Status

Postponed

Version

4.0

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024