Problem/Motivation

When using different theme for domain, CKEditor 5 stylesheets are not loaded (ckeditor5-stylesheets from theme info.yml file). This is due to logic in ckeditor5 module that takes default system theme, since it's not aware of active domain theme.

Proposed resolution

Alter CKEditor 5 library info in hook function where active domain theme is used.

CommentFileSizeAuthor
cke5-active-domain-theme.patch1.07 KBtrafo
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

trafo created an issue. See original summary.

lindsay.wils’s picture

Thanks for posting this, I have just applied the patch and it seems to solve the issue. Both the base and sub theme's ckeditor stylesheets are now being loaded

mably’s picture

Status: Needs review » Needs work

We need an MR for 2.x.

3.x is not concerned by this issue.

rollins made their first commit to this issue’s fork.

rollins’s picture

Status: Needs work » Needs review

  • mably committed 37adce4f on 2.x authored by rollins
    fix: #3416991 Include correct CKEditor 5 stylesheets
    
    By: trafo
    By:...
mably’s picture

Status: Needs review » Fixed

Thanks for the MR @rollins!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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