Ckeditor5 Stylesheet
mantra_starter.info.yml
Should be able to load extra stylesheets into ckeditor like this:
ckeditor5-stylesheets:
- css/drupal/ckeditor5.stylesheet.cssDocs: How to add styles to ckeditor.
View on Drupal.org #3348874But it's not working Status: Active.
Using a libraries-extend on core/ckeditor5 instead.
elements.css
Base styles set and use variables.
blockquote {
--blockquote-border: .25rem solid var(--color-dark);
--blockquote-font-style: italic;
--blockquote-padding: 0 1rem;
--blockquote-margin: 1rem 0;
padding: var(--blockquote-padding);
margin: var(--blockquote-margin);
border-left: var(--blockquote-border);
font-style: var(--blockquote-font-style);
}ckeditor5.stylesheet.css
Prefix items with .ck.ck-content to override.
.ck.ck-content blockquote {
padding: var(--blockquote-padding);
margin: var(--blockquote-margin);
border-left: var(--blockquote-border);
font-style: var(--blockquote-font-style);
}Build ckeditor from source
https://www.drupal.org/docs/core-modules-and-themes/core-modules/ckedit…
Default CKEditor styles
https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/conten…
CKEditor theme customization
https://ckeditor.com/docs/ckeditor5/latest/framework/guides/deep-dive/u…
Stackoverflow thread
https://drupal.stackexchange.com/questions/319756/how-can-i-modify-cked…