Ticket #5676: 5676.patch

File 5676.patch, 745 bytes (added by Alfonso Martínez de Lizarrondo, 9 years ago)

Proposed patch

  • _source/plugins/colorbutton/plugin.js

     
    140140
    141141                                // The data can be only a color code (without #) or colorName + color code
    142142                                // If only a color code is provided, then the colorName is the color with the hash
     143                                // Convert the color to 6 places for better compatibility with IE and <font>. See #5676
    143144                                if (!parts[1])
    144                                         colorName = '#' + colorName;
     145                                        colorName = '#' + colorName.replace( /^(.)(.)(.)$/, '$1$1$2$2$3$3' );
    145146
    146147                                var colorLabel = editor.lang.colors[ colorCode ] || colorCode;
    147148                                output.push(
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy