Ticket #5914: 5914.patch
File 5914.patch, 1.7 KB (added by , 13 years ago) |
---|
-
_source/plugins/smiley/dialogs/smiley.js
21 21 var target = evt.data.getTarget(), 22 22 targetName = target.getName(); 23 23 24 if ( targetName == 'td' ) 25 target = target.getChild( [ 0, 0 ] ); 26 else if ( targetName == 'a' ) 24 if ( targetName == 'a' ) 27 25 target = target.getChild( 0 ); 28 26 else if ( targetName != 'img' ) 29 27 return; … … 151 149 152 150 var smileyLabelId = 'cke_smile_label_' + i + '_' + CKEDITOR.tools.getNextNumber(); 153 151 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;">' + 155 153 '<a href="javascript:void(0)" role="option"', 156 154 ' aria-posinset="' + ( i +1 ) + '"', 157 155 ' aria-setsize="' + size + '"', 158 156 ' 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], '"' + 161 159 ' cke_src="', CKEDITOR.tools.htmlEncode( config.smiley_path + images[ i ] ), '" alt="', config.smiley_descriptions[i], '"', 162 160 ' src="', CKEDITOR.tools.htmlEncode( config.smiley_path + images[ i ] ), '"', 163 161 // IE BUG: Below is a workaround to an IE image loading bug to ensure the image sizes are correct.