CKEditor styling: CSS file changes are not visible because of cache handling
When styling the CKEditor editor (yaml file: editor:config:contentsCss:editor.css), the CSS file is being cached, so no further changes are visible unless I reopen the browser. Deleting typo3temp also did not work.
#1 Updated by Jan Kornblum 10 months ago
- Priority changed from Should have to Must have
- TYPO3 Version changed from 8 to 9
Still seems not have been solved (9.5.1). Using this workaround: https://stackoverflow.com/questions/43758574/css-file-in-rte-ckeditor-in-typo3-8-7-1-is-not-reloaded-after-modification
#4 Updated by DANIEL Rémy 4 months ago
When ckeditor loads its resources, it adds a "timestamp" parameter to the url of the resource:
This timestamp changes with every version of ckeditor: with ckeditor 4.11.1 it is "?t=IE8A".
But this timestamp is not added for contentsCss.
I think this should be reported in upstream ckeditor.
Loading of contentsCss is done here: https://github.com/ckeditor/ckeditor-dev/blob/4.11.1/core/tools.js#L346 (timestamp not appended to CSS url)
Loading of other resources uses this: See https://github.com/ckeditor/ckeditor-dev/blob/4.11.1/core/ckeditor_base.js#L177 (timestamp appended to resource url)