\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