Project

General

Profile

Actions

Bug #102540

closed

ContentCss is not loaded in CKeditor

Added by David Hoeckele 12 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2023-11-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

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)?

Actions #2

Updated by Chris Müller 12 months ago

  • Status changed from New to Needs Feedback
Actions #3

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 ".".

Actions #4

Updated by Christian Eßl 12 months ago

  • Status changed from Needs Feedback to Accepted
Actions #5

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.

Actions #6

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.

Actions #7

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF