Opened 7 years ago

Last modified 3 years ago

#11679 confirmed Bug

Color buttons can't be customized — at Initial Version

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:


  1. Insert below code on page and into contents.css
    var editor = CKEDITOR.replace( 'editor1', {		
    				//allowedContent : true,
    				colorButton_colors : 'highlight_yellow/FFFF00',
    				colorButton_backStyle : {
    					element : 'span',
    					attributes : {
    						'class' : '#(color)',
    						'element' :'#(color)'
    //in contents.css
    	background-color: #FFFF00;
  2. Refresh the cache.
  3. Highlight the word and change its color to Yellow.


  1. Witah allowedContent:true commented out once you switch to source and back, span will be removed and it shouldn't be. This part is reproducible from CKEditor 4.1.
  1. You can't change this color to automatic with such configuration. This part can be reproduced from CKEditor 3.0.

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy