Ticket #6150: 6150.patch

File 6150.patch, 1.4 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/colordialog/dialogs/colordialog.js

     
    236236
    237237                var table = new $el( 'table' );
    238238                createColorTable();
     239                var html = table.getHtml();
    239240
    240241                var numbering = function( id )
    241242                        {
     
    270271                                                        [
    271272                                                                {
    272273                                                                        type : 'html',
    273                                                                         html : '<table role="listbox" aria-labelledby="' + tableLabelId + '" onmouseout="CKEDITOR.tools.callFunction( ' + onMouseout + ' );">' + table.getHtml() + '</table>' +
    274                                                                                                 '<span id="' + tableLabelId + '" class="cke_voice_label">' + lang.options +'</span>',
     274                                                                        html :  '<table role="listbox" aria-labelledby="' + tableLabelId + '" onmouseout="CKEDITOR.tools.callFunction( ' + onMouseout + ' );">' +
     275                                                                                        ( !CKEDITOR.env.webkit ? html : '' ) +
     276                                                                                '</table><span id="' + tableLabelId + '" class="cke_voice_label">' + lang.options +'</span>',
    275277                                                                        onLoad : function()
    276278                                                                        {
    277279                                                                                var table = CKEDITOR.document.getById( this.domId );
    278280                                                                                table.on( 'mouseover', updateHighlight );
     281                                                                                // In WebKit, the table content must be inserted after this event call (#6150)
     282                                                                                CKEDITOR.env.webkit && table.setHtml( html );
    279283                                                                        },
    280284                                                                        focus: function()
    281285                                                                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy