Hi,
I'm using the Text Colour picker to change the colour of a few words in the editor. This works, adding (for example) "<span style="color:#FF0000;">" to the appropriate words.
But when I save it, the <span> tags are lost, so I'm unable to save the colour change. Any ideas why this is happening?
Thanks!
H
What version of CKEditor and
What version of CKEditor and which package do you have? Looks like ACF might be stripping the code but since you have the icon it shouldn't be doing that. Try adding this code to your config.js file just in case: CKEDITOR.config.allowedContent = true
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Thanks for your reply seb --
Thanks for your reply seb -- I'm using version 4.1.2 (revision d6f1e0e).
I added that to my config, but it still doesn't work. This is how my config.js looks:
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.allowedContent = true;
};
Might be worth telling how
Might be worth telling how you customized the editor. Manually or via CKBuilder? Also the full code used, before and after the change, could offer clues. Just adding the Color button via the builder works on my end (4.2), but some people in previous versions have mentioned also needing the Panel Button for it to work.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Ok, I've just installed 4.2,
Ok, I've just installed 4.2, standard preset, customised with the builder to include the Color Button.
Still doesn't work, unfortunately!