Actions
Bug #99327
closedEpic #99669: CKEditor5 Collection
CKEditor: Multiple stylesheets in config.contentsCss are not working anymore
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2022-12-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In TYPO3 12.0.0 and 12.1.0 it's not possible anymore to include multiple stylesheets in editor.config.contentsCss for CKEditor as described here:
contentsCss : String | Array https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-contentsCss
Working example in TYPO3 11:
contentsCss: [ "EXT:rte_ckeditor/Resources/Public/Css/contents.css", "EXT:myext/Resources/Public/Css/lib.css", "EXT:myext/Resources/Public/Css/custom.css" ]
I know, now it's CKEditor 5, but we need it for example to include some CSS of a library and some custom CSS-files and now it's not possible anymore and a breaking change. I think this lines and following are wrong:
$styleSrc = (string)($ckeditorConfiguration['options']['contentsCss'] ?? ''); https://github.com/TYPO3/typo3/blob/v12.1.0/typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php#L130
Actions