How do I properly set default Colors in Ckeditor?

Permalink
When I modify /concrete/js/ckeditor/vendor/config.js nothing happens.

In /concrete/js/ckeditor/vendor/ckeditor.js I can directly modify ‹CKEDITOR.config.colorButton_colors› to my desired theme colors. This is successful but unsafe due to possible core update.

I also tried to override without success.

What would be the proper way?

Thanks in advance.

blinkdesign
 
helvetica replied on at Permalink Best Answer Reply
helvetica
hey blinkers,
use the file "site.php" in /applications/config !
have a look at the API in docs.ckeditor.com
don't modify the ckeditor.js
blinkdesign replied on at Permalink Reply
blinkdesign
Thanks Ms Helvetica.
That's it!
The file looks like this.
<?php
return [
    'sites' => [
        'default' => [
            'editor' => [
                'ckeditor4' => [
                    'custom_config_options' => [
                        // corporate colors
                        'colorButton_colors' => '000,fff,ff9900,3399CC,0066CC,33CCCC',
                        // more configuration stuff
                    ],
                ]
            ]
        ]
    ]


There's a lot more useful stuff to configure.
Thanks To MrKDilkington, - he has made a file template including comments ready to go at:
https://gist.github.com/MrKarlDilkington/5a14cf2c8aca511c8c9d2026e07...
blinkdesign replied on at Permalink Reply
blinkdesign
Does anybody or @helvetica knows if these colors are added as an "inline"-class?
helvetica replied on at Permalink Reply
helvetica
hi,
yes, the style is applied inline. i'm not using these color styles b'cause it's tiresome to maintain. but for the forum where users can define their posts it's ok.