Ticket #32604: 32604.6.patch
| File 32604.6.patch, 1.1 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
667 667 } 668 668 669 669 toolbar.on( 'show', function() { 670 currentToolbar = this;671 670 this.reposition(); 672 671 } ); 673 672 674 toolbar.on( 'hide', function() {675 currentToolbar = false;676 } );677 678 673 toolbar.on( 'keydown', function( event ) { 679 674 if ( event.keyCode === 27 ) { 680 675 this.hide(); … … 722 717 723 718 currentSelection = args.selection || args.element; 724 719 725 currentToolbar && currentToolbar.hide(); 726 args.toolbar && args.toolbar.show(); 720 if ( currentToolbar ) { 721 currentToolbar.hide(); 722 } 723 724 if ( args.toolbar ) { 725 currentToolbar = args.toolbar; 726 currentToolbar.show(); 727 } else { 728 currentToolbar = false; 729 } 730 } ); 731 732 editor.on( 'focus', function() { 733 if ( currentToolbar ) { 734 currentToolbar.show(); 735 } 727 736 } ); 728 737 729 738 editor.wp = editor.wp || {};