When using CKEditor5 in 9.5 or 10.x core, a site with Barrio Bootstrap enabled will report the following warning on content format configuration pages
The Bootstrap Barrio theme has ckeditor_stylesheets configured without a corresponding ckeditor5-stylesheets configuration. See the change record for details.
The .info.yml file contains this section
ckeditor_stylesheets:
- css/components/table.cssThe change record linked above explains why ckeditor5 cannot automatically assume this declaration applies there too (the editor is no longer loaded in IFRAME, so included stylesheets could affect layout elsewhere on the page).
So to resolve this, we either need to change the above snippet to
ckeditor_stylesheets:
- css/components/table.css
ckeditor5_stylesheets:
- css/components/table.cssOr to
ckeditor_stylesheets:
- css/components/table.css
ckeditor5_stylesheets:
I cannot work out which to propose a patch for review
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | bootstrap_barrio-ckeditor5_3328064_2.patch | 360 bytes | jamesoakley |
Comments
Comment #2
jamesoakleySorry, I was wrong on two counts. Firstly, ckeditor_stylesheets corresponds to ckeditor5-stylesheets (hyphen, not underscore). Second, if none is required, it should be set to false.
So we need either this:
Or this:
Patch attached for the second of those. But I'm still not setting this to "needs review", because I'm not convinced we don't need the first one.
Comment #3
jamesoakleyComment #4
jamesoakleyComment #6
hatuhay commentedSet to false until proper css file created.