X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fcolorbutton%2Fplugin.js;fp=_source%2Fplugins%2Fcolorbutton%2Fplugin.js;h=f2a8f2b1b5b728ad310f2e9bdc5566435fbccd48;hb=8665a7c6c60586526e32e8941fe2896739b6ebfb;hp=2a14bb07dcfaa54f73dd87750cd2a50cae53e239;hpb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;p=ckeditor.git diff --git a/_source/plugins/colorbutton/plugin.js b/_source/plugins/colorbutton/plugin.js index 2a14bb0..f2a8f2b 100644 --- a/_source/plugins/colorbutton/plugin.js +++ b/_source/plugins/colorbutton/plugin.js @@ -140,8 +140,9 @@ CKEDITOR.plugins.add( 'colorbutton', // The data can be only a color code (without #) or colorName + color code // If only a color code is provided, then the colorName is the color with the hash + // Convert the color from RGB to RRGGBB for better compatibility with IE and . See #5676 if (!parts[1]) - colorName = '#' + colorName; + colorName = '#' + colorName.replace( /^(.)(.)(.)$/, '$1$1$2$2$3$3' ); var colorLabel = editor.lang.colors[ colorCode ] || colorCode; output.push(