Issue Bug Closed

#100505RTE loads CSS file path as string, but path comes as array

Christoph Kratz 04/06/23, 09:58 updated 07/09/24, 12:55

Description

The CKEditor5 can be given an optional CSS file. This creates an error because the path is read as a string but comes as an array.

typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php:130

Error:
$styleSrc = (string)($ckeditorConfiguration[‘options’][‘contentsCss’] ?? ‘’);

Possible solution:
$styleSrc = (string)($ckeditorConfiguration[‘options’][‘contentsCss’]0 ?? ‘’);

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.