Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
7.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2011 at 06:52 UTC
Updated:
15 Jun 2011 at 05:00 UTC
Is it possible to define a custom color palette that appears when user clicks "Font Color" button?
I changed the content of sites/all/modules/ckeditor/ckeditor/ckeditor/ckeditor.config.js file like this:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.colorButton_colors = '00923E,F8C100,28166F';
};
Then cleared browser cache, but nothing changed, the palette is the same.
Comments
Comment #1
dczepierga commentedU must paste following code to CKEditor profile which u use for this textarea:
config.colorButton_colors = '00923E,F8C100,28166F';in section: Advanced Options -> Custom javascript configuration
Pls write does help u or not.
I check this with last DEV version of CKEditor module and for me everything works fine.
Greetings
Comment #2
dczepierga commentedU must paste following code to CKEditor profile which u use for this textarea:
config.colorButton_colors = '00923E,F8C100,28166F';in section: Advanced Options -> Custom javascript configuration
Pls write does help u or not.
I check this with last DEV version of CKEditor module and for me everything works fine.
Greetings
Comment #3
dczepierga commentedComment #4
raincloud commentedYes, it works this way. I just thought it would be possible to configure via custom external js file which would not be overwritten by subsequent versions of ckeditor (I always try to look for such solutions). But it is also sufficient to do as you suggested. Thanks.