Ticket #5914: 5914.patch

File 5914.patch, 1.7 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • _source/plugins/smiley/dialogs/smiley.js

     
    2121                var target = evt.data.getTarget(),
    2222                        targetName = target.getName();
    2323
    24                 if ( targetName == 'td' )
    25                         target = target.getChild( [ 0, 0 ] );
    26                 else if ( targetName == 'a' )
     24                if ( targetName == 'a' )
    2725                        target = target.getChild( 0 );
    2826                else if ( targetName != 'img' )
    2927                        return;
     
    151149
    152150                var smileyLabelId = 'cke_smile_label_' + i + '_' + CKEDITOR.tools.getNextNumber();
    153151                html.push(
    154                         '<td class="cke_dark_background cke_hand cke_centered" style="vertical-align: middle;">' +
     152                        '<td class="cke_dark_background cke_centered" style="vertical-align: middle;">' +
    155153                                '<a href="javascript:void(0)" role="option"',
    156154                                        ' aria-posinset="' + ( i +1 ) + '"',
    157155                                        ' aria-setsize="' + size + '"',
    158156                                        ' aria-labelledby="' + smileyLabelId + '"',
    159                                         ' class="cke_smile" tabindex="-1" onkeydown="CKEDITOR.tools.callFunction( ', onKeydown, ', event, this );">',
    160                                         '<img class="hand" title="', config.smiley_descriptions[i], '"' +
     157                                        ' class="cke_smile cke_hand" tabindex="-1" onkeydown="CKEDITOR.tools.callFunction( ', onKeydown, ', event, this );">',
     158                                        '<img class="cke_hand" title="', config.smiley_descriptions[i], '"' +
    161159                                                ' cke_src="', CKEDITOR.tools.htmlEncode( config.smiley_path + images[ i ] ), '" alt="', config.smiley_descriptions[i], '"',
    162160                                                ' src="', CKEDITOR.tools.htmlEncode( config.smiley_path + images[ i ] ), '"',
    163161                                                // IE BUG: Below is a workaround to an IE image loading bug to ensure the image sizes are correct.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy