JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1.1
[ckeditor.git] / _source / plugins / colorbutton / plugin.js
index b49e5f8..f35ed2c 100644 (file)
@@ -194,7 +194,13 @@ CKEDITOR.config.colorButton_foreStyle =
        {\r
                element         : 'span',\r
                styles          : { 'color' : '#(color)' },\r
-               overrides       : [ { element : 'font', attributes : { 'color' : null } } ]\r
+               overrides       : [ { element : 'font', attributes : { 'color' : null } } ],\r
+\r
+               // Fore color style must be applied inside links instead of around it.\r
+               childRule : function( element )\r
+               {\r
+                       return element.getName() != 'a';\r
+               }\r
        };\r
 \r
 /**\r