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.
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.
Thanks Ms Helvetica.
That's it!
The file looks like this.
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...
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 ], ] ] ] ]
Viewing 15 lines of 16 lines. View entire code block.
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...
Does anybody or @helvetica knows if these colors are added as an "inline"-class?
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.
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.
use the file "site.php" in /applications/config !
have a look at the API in docs.ckeditor.com
don't modify the ckeditor.js