X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fcolorbutton%2Fplugin.js;h=f35ed2cc068fd0cd4623c7b037fa9ede3e49795a;hp=b49e5f84da27970f70db0ed83f26f2b5a4cc122b;hb=c6e377a02b54abc07129d72b632763c727476a15;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6 diff --git a/_source/plugins/colorbutton/plugin.js b/_source/plugins/colorbutton/plugin.js index b49e5f8..f35ed2c 100644 --- a/_source/plugins/colorbutton/plugin.js +++ b/_source/plugins/colorbutton/plugin.js @@ -194,7 +194,13 @@ CKEDITOR.config.colorButton_foreStyle = { element : 'span', styles : { 'color' : '#(color)' }, - overrides : [ { element : 'font', attributes : { 'color' : null } } ] + overrides : [ { element : 'font', attributes : { 'color' : null } } ], + + // Fore color style must be applied inside links instead of around it. + childRule : function( element ) + { + return element.getName() != 'a'; + } }; /**