Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#2395853: Split system.module.css and system.theme.css files into SMACSS style components removed core/modules/system/css/system.module.css
. But the CKEditor module is still referring to it. Which causes CKEditor to try to load this file, resulting in a 404.
Steps to reproduce
- Create a node.
- Go to that node's full page
- Ensure the comment form is loaded
- Look in the browser's developer console, you'll see a 404.
Proposed resolution
Fix it, by stopping to tell CKEditor to load this file. AFAICT the only selectors that really were needed in system.module.css
, were the text alignment ones. Those now live in align.module.css
, so that's the one the patch updates it to.
Remaining tasks
Review.
User interface changes
None.
API changes
None.
Data model changes
None.
Beta phase evaluation
Issue category | Bug because CSS is creating 404 |
---|---|
Issue priority | Not critical because bug is not prohobitive |
Unfrozen changes | Unfrozen because it only changes CSS |
Comment | File | Size | Author |
---|---|---|---|
#7 | wadawd___Site-Install.png | 961.34 KB | LewisNyman |
#6 | 2552187-6.patch | 1.56 KB | Wim Leers |
Comments
Comment #2
Wim LeersComment #3
Wim LeersComment #4
willzyx CreditAttribution: willzyx commentedprobably we need to update Drupal\ckeditor\Tests\CKEditorTest::getDefaultContentsCssConfig() too..
Comment #6
Wim LeersIndeed!
Done.
Comment #7
LewisNymanThanks! I can confirm that the CSS file is loaded correctly. I also looked over the WYSIWYG functions and the system CSS files. I couldn't see any other CSS files that should be loaded apart from align.module.css
Comment #8
davidhernandezHmm. Looks like we broke a couple tests, having removed system.module.css and system.theme.css. They didn't fail because they are doing assertNoText.
I guess we could do that in another follow up.
Comment #10
Wim LeersThe failures here are another case of #2552687: Test failures in ConfigFormOverrideTest and ContainerRebuildWebTest on newly spun up testbot instances.
Comment #12
alexpottCommitted 55f6f42 and pushed to 8.0.x. Thanks!