Project

General

Profile

Actions

Bug #81473

closed

CKEdtor - use multiple stylesheets

Added by wini2 no-lastname-given over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2017-06-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
ckeditor
Complexity:
Is Regression:
Sprint Focus:

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).

Actions #1

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" 

Actions #2

Updated by wini2 no-lastname-given over 7 years ago

Thank you Philipp!

It's a strange solution - but it is a solution.

Actions #3

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.

Actions #4

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" ]
Actions

Also available in: Atom PDF