Project

General

Profile

Actions

Bug #99327

closed

Epic #99669: CKEditor5 Collection

CKEditor: Multiple stylesheets in config.contentsCss are not working anymore

Added by Wittkiel Gruppe almost 2 years ago. Updated 5 months ago.

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #100505: RTE loads CSS file path as string, but path comes as arrayClosed2023-04-06

Actions
Actions

Also available in: Atom PDF