Bug #81473
closedCKEdtor - use multiple stylesheets
0%
Description
hi,
it's not possible to use more than one stylsheet in the configuration of the ckeditor. The way described at http://docs.ckeditor.com/#!/api/CKEDITOR.config
config.contentsCss = '/css/mysitestyles.css';
config.contentsCss = [ '/css/mysitestyles.css', '/css/anotherfile.css' ];
does not work. It produces the error
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Unexpected characters near ";" at line 11 (near "contentsCss: ["/fileadmin/Template/ext/rte_ckeditor/Resources/Public/Css/custom_contents.css" , "EXT:t3sbootstrap/Resources/Public/Styles/rte.css"];"). | Symfony\Component\Yaml\Exception\ParseException thrown in file /home/www/typo3_src-8.7.1/vendor/symfony/yaml/Inline.php in line 112.
btw.: The sytax of the offical documentation and the one which is used in Base.yaml are different - contentsCss = vs. contentsCSS : (both versions don't work).
Updated by Anonymous over 7 years ago
I just happened to try the same here and succeeded following this tutorial: https://www.thomaskieslich.de/blog/127-typo3-8x-ckeditor-konfigurieren/
This a part from my Custom.yaml
editor: config: contentsCss: - "EXT:rte_ckeditor/Resources/Public/Css/contents.css" - "EXT:custom_extension/Resources/Public/CSS/RTE/rte.css"
Updated by wini2 no-lastname-given over 7 years ago
Thank you Philipp!
It's a strange solution - but it is a solution.
Updated by Mona Muzaffar over 7 years ago
- Status changed from New to Closed
i am closing this ticket since this doesn't seem to be a bug and a solution was found.
Updated by Vasyl Mosiychuk over 6 years ago
Philipp Kitzberger wrote:
I just happened to try the same here and succeeded following this tutorial: https://www.thomaskieslich.de/blog/127-typo3-8x-ckeditor-konfigurieren/
This a part from my Custom.yaml
[...]
Your is example not correct...
This example correct
contentsCss = [ "EXT:extnameone/Resources/Public/Css//myone.css", "EXT:extnametwo/Resources/Public/Css/mytwo.css" ]