Make WordPress Core

Ticket #22463: 22463.patch

File 22463.patch, 1.2 KB (added by SergeyBiryukov, 13 years ago)
  • wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js

     
    66        var DOM = tinymce.DOM;
    77
    88        tinymce.create('tinymce.plugins.WordPress', {
    9                 mceTout : 0,
     9                showButtons : 0,
    1010
    1111                init : function(ed, url) {
    1212                        var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML, closeOnClick, mod_key;
     
    375375                                'display' : 'block'
    376376                        });
    377377
    378                         if ( this.mceTout )
    379                                 clearTimeout(this.mceTout);
    380 
    381                         this.mceTout = setTimeout( function(){ed.plugins.wordpress._hideButtons();}, 5000 );
     378                        this.showButtons = true;
    382379                },
    383380
    384381                _hideButtons : function() {
    385                         if ( !this.mceTout )
     382                        if ( ! this.showButtons )
    386383                                return;
    387384
    388385                        if ( document.getElementById('wp_editbtns') )
     
    391388                        if ( document.getElementById('wp_gallerybtns') )
    392389                                tinymce.DOM.hide('wp_gallerybtns');
    393390
    394                         clearTimeout(this.mceTout);
    395                         this.mceTout = 0;
     391                        this.showButtons = false;
    396392                },
    397393
    398394                // Resizes the iframe by a relative height value