Ticket #33286: 33286.3.patch
| File 33286.3.patch, 1.5 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
557 557 activeToolbar, 558 558 currentSelection, 559 559 timeout, 560 container = editor.getContainer(), 560 561 wpAdminbar = document.getElementById( 'wpadminbar' ), 561 562 mceIframe = document.getElementById( editor.id + '_ifr' ), 562 mceToolbar = tinymce.$( '.mce-toolbar-grp', editor.getContainer() )[0],563 mceStatusbar = tinymce.$( '.mce-statusbar', editor.getContainer() )[0],563 mceToolbar, 564 mceStatusbar, 564 565 wpStatusbar; 565 566 567 if ( container ) { 568 mceToolbar = tinymce.$( '.mce-toolbar-grp', container )[0]; 569 mceStatusbar = tinymce.$( '.mce-statusbar', container )[0]; 570 } 571 566 572 if ( editor.id === 'content' ) { 567 573 wpStatusbar = document.getElementById( 'post-status-info' ); 568 574 } … … 702 708 scrollY = window.pageYOffset || document.documentElement.scrollTop, 703 709 windowWidth = window.innerWidth, 704 710 windowHeight = window.innerHeight, 705 iframeRect = mceIframe.getBoundingClientRect(), 711 iframeRect = mceIframe ? mceIframe.getBoundingClientRect() : { 712 top: 0, 713 right: windowWidth, 714 bottom: windowHeight, 715 left: 0, 716 width: windowWidth, 717 height: windowHeight 718 }, 706 719 toolbar = this.getEl(), 707 720 toolbarWidth = toolbar.offsetWidth, 708 721 toolbarHeight = toolbar.offsetHeight,