Bug #102540
closedContentCss is not loaded in CKeditor
0%
Description
Configuring contentCss in CKeditor config.yaml (as described here https://docs.typo3.org/c/typo3/cms-rte-ckeditor/12.4/en-us/Configuration/Examples.html#id5) does not work - CSS file is not loaded.
Updated by Chris Müller 12 months ago
I cannot confirm this: I am using custom CSS styles this way in 12.4.8. Have you cleared the cache (TYPO3 and browser)?
Updated by Christian Eßl 12 months ago
I can confirm this bug. It only happens with richtext editors inside flexform fields containing a dot, like "settings.text". TYPO3 then generates a the html with the identifier "#data_tt_content__6303__pi_flexform__data__sDEF__lDEF__settings.text__vDEF_ckeditor5" and a css file with rules like:
#data_tt_content__6303__pi_flexform__data__sDEF__lDEF__settings.text__vDEF_ckeditor5 .ck-content a {
color: #0782C1;
text-decoration: underline;
}
IDs with a "." are invalid and do not get their css styles correctly applied. Apparently something in FormEngine changed with an update, that now creates these IDs with a ".".
Updated by Christian Eßl 12 months ago
- Status changed from Needs Feedback to Accepted
Updated by Christian Eßl 12 months ago
Ok, from what I see, that ids have always been generated with a ".", but the generated css, that now uses these ids, is new.
Updated by Christian Eßl 12 months ago
- Status changed from Accepted to Resolved
Ok, the bug has already been fixed with TYPO3 12.4.8:
https://github.com/TYPO3/typo3/commit/34384bb8614d8c914063ca20adb32315d9b48902
I will close this now.