JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.2
[ckeditor.git] / _source / plugins / colorbutton / plugin.js
index 2a14bb0..f2a8f2b 100644 (file)
@@ -140,8 +140,9 @@ CKEDITOR.plugins.add( 'colorbutton',
 \r
                                // The data can be only a color code (without #) or colorName + color code\r
                                // If only a color code is provided, then the colorName is the color with the hash\r
+                               // Convert the color from RGB to RRGGBB for better compatibility with IE and <font>. See #5676\r
                                if (!parts[1])\r
-                                       colorName = '#' + colorName;\r
+                                       colorName = '#' + colorName.replace( /^(.)(.)(.)$/, '$1$1$2$2$3$3' );\r
 \r
                                var colorLabel = editor.lang.colors[ colorCode ] || colorCode;\r
                                output.push(\r