#99327CKEditor: Multiple stylesheets in config.contentsCss are not working anymore
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