- ππΊHungary djg_tram
Is your
base-ckeditor5.css
included in the first place? I had problems with it in a similar situation. - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Looks like a cool thing you're trying to build there π€©
Temporarily moving this to the Olivero component so @mherchel will hopefully provide feedback π€π€
- Status changed to Closed: works as designed
over 1 year ago 2:09pm 9 July 2023 - πΊπΈUnited States andy-blum Ohio, USA
What's probably happening here is the CKEditor-default styles are occurring in a stylesheet that's applied after your styles. Because they are in the same context and have the same specificity, the last-defined value wins. You have a few options:
1. Change your selector. If you select an element further down the DOM like
.ck-editor__main
, you should be able to override the value of the css-variable, even without changing your specificity or context.2. Alter the ck-editor library. You can use libraries-override β to change the ck-editor library that gets attached for your theme.
3. Move your styles down in the cascade. Your styles are higher in the cascade, and are losing to styles lower in the cascade. You could add a weight to your stylesheet β where those styles are defined between -50 and +50. Higher weights "sink" to the bottom, and lighter weights "float" to the top.
Closing this support request now, but feel free to re-open the ticket if needed.