Ticket #3122: 3122.patch
File 3122.patch, 1.9 KB (added by , 15 years ago) |
---|
-
_source/plugins/menu/plugin.js
272 272 ' onblur="this.style.cssText = this.style.cssText;"' ); 273 273 } 274 274 275 var offset = ( this.offset || 0 ) * -16; 275 276 output.push( 276 277 // ' onkeydown="return CKEDITOR.ui.button._.keydown(', index, ', event);"' + 277 278 ' onmouseover="CKEDITOR.tools.callFunction(', menu._.itemOverFn, ',', index, ');"' + … … 279 280 ' onclick="CKEDITOR.tools.callFunction(', menu._.itemClickFn, ',', index, ');"' + 280 281 '>' + 281 282 '<span class="cke_icon"' + 282 ( this.icon ? ' style="background-image:url(' + CKEDITOR.getUrl( this.icon ) + ');background-position:0 0;"' : '' ) + 283 ( this.icon ? ' style="background-image:url(' + CKEDITOR.getUrl( this.icon ) + ');background-position:0 ' + offset + 'px;"' 284 : '' ) + 283 285 '></span>' + 284 286 '<span class="cke_label">' ); 285 287 -
_source/plugins/button/plugin.js
56 56 this.className = definition.className || ( definition.command && 'cke_button_' + definition.command ) || ''; 57 57 58 58 this.icon = definition.icon; 59 this.offset = definition.offset; 59 60 60 61 /** 61 62 * The function to be called when the user clicks the button. If not … … 179 180 '<span class="cke_icon"' ); 180 181 181 182 if ( this.icon ) 182 output.push( ' style="background-image:url(', CKEDITOR.getUrl( this.icon ), ');background-position:0 0;"' ); 183 { 184 var offset = ( this.offset || 0 ) * -16; 185 output.push( ' style="background-image:url(', CKEDITOR.getUrl( this.icon ), ');background-position:0 ' + offset + 'px;"' ); 186 } 183 187 184 188 output.push( 185 189 '></span>' +