Ticket #22463: 22463.patch
File 22463.patch, 1.2 KB (added by , 13 years ago) |
---|
-
wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js
6 6 var DOM = tinymce.DOM; 7 7 8 8 tinymce.create('tinymce.plugins.WordPress', { 9 mceTout: 0,9 showButtons : 0, 10 10 11 11 init : function(ed, url) { 12 12 var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML, closeOnClick, mod_key; … … 375 375 'display' : 'block' 376 376 }); 377 377 378 if ( this.mceTout ) 379 clearTimeout(this.mceTout); 380 381 this.mceTout = setTimeout( function(){ed.plugins.wordpress._hideButtons();}, 5000 ); 378 this.showButtons = true; 382 379 }, 383 380 384 381 _hideButtons : function() { 385 if ( ! this.mceTout)382 if ( ! this.showButtons ) 386 383 return; 387 384 388 385 if ( document.getElementById('wp_editbtns') ) … … 391 388 if ( document.getElementById('wp_gallerybtns') ) 392 389 tinymce.DOM.hide('wp_gallerybtns'); 393 390 394 clearTimeout(this.mceTout); 395 this.mceTout = 0; 391 this.showButtons = false; 396 392 }, 397 393 398 394 // Resizes the iframe by a relative height value