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