[1.1.0] Add Ckeditor5 support

Created on 9 February 2023, over 2 years ago
Updated 22 August 2024, 9 months ago

Problem/Motivation

The ckeditor_stylesheets property in a theme's info.yml makes it possible to CKEditor 4 contents with CSS from the front-end theme.

ui_suite_dsfr is currently using this key:

ckeditor_stylesheets:
  - dist/dsfr.min.css

To make it works with CKEditor 5, there are 2 changes:

  • the key is now
  • those styles need to be written differently since CKEditor 5 is not loaded in an iframe, with a selector prefix

We keep both ckeditor 4 and ckeditor 5 while Drupal 9 is till supported (until

Remaining tasks

  • Decide how much of this CSS should be avaiable for CKEditor 5. The full seems overkill.
  • Find a way of automatically prefixing all those selectors.
Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇫🇷France pdureau Paris

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

Comments & Activities

Production build 0.71.5 2024