Opened 11 years ago
Last modified 7 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: |
Description
- 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 .highlight_yellow{ background-color: #FFFF00; }
- Refresh the cache.
- Highlight the word and change its color to Yellow.
Results:
- 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.
- You can't change this color to automatic with such configuration. This part can be reproduced from CKEditor 3.0.