Issue Bug Closed

#100348ckeditor 5 does not allow styling of UL/OL elements

Sven Carstens 03/29/23, 11:15 updated 07/09/24, 12:55

Description

ckeditor 4 did allow for the styling of UL/OL via css classes.
Applying the following configuration in ckeditor 5 will only allow to style the individial LI elements or a complete P element.

editor:
    config:
        style:
            definitions:
                - { name: "✓ Checkmarks UL", element: "ul", classes: ['list-unordered-checkmarks'] }
                - { name: "✓ Checkmarks P", element: "p", classes: ['list-unordered-checkmarks'] }
                - { name: "✓ Checkmarks LI", element: "li", classes: ['list-unordered-checkmarks'] }

Seems to be a general problem with ckeditor 5 not yet supporting this (and other) use-cases.

Related drupal issue https://www.drupal.org/project/drupal/issues/3326261

Reviews 2