Add CKEditor 5 stylesheet for Rivet

Created on 14 October 2024, 2 months ago

Problem/Motivation

CKEditor in Drupal backend should style Rivet classes.

Proposed resolution

Remaining tasks

Add a ckeditor5-stylesheets: entry in rivet.info.yml

(for now) use the KISS approach by simply importing the correct rivet stylesheet from CDN.

Most of the relevant styles are scoped with the .rvt- prefix, and only a few html tags have styles (eg figcaption), which in most cases would be overridden by the admin theme or ckeditor styles anyway.

Later we can look at doing more fancy postcss processing to import only the relevant styles for typical prose editing in CKEditor, eg replace .rvt-prose with .ck.ck-content, among other enhancements.

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024