Problem/Motivation

CKEditor in Drupal backend should style Rivet classes.

Proposed resolution

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.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork rivet-3480671

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jwilson3 created an issue. See original summary.

jwilson3’s picture

Issue summary: View changes

  • jwilson3 committed 022f7d2f on 1.0.x
    Issue #3480671: Add CKEditor 5 stylesheet for Rivet
    
jwilson3’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.