Make WordPress Core

Ticket #31028: 31028.patch

File 31028.patch, 743 bytes (added by iseulde, 9 years ago)
  • src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

     
    176176
    177177                windowPos = window.pageYOffset || document.documentElement.scrollTop;
    178178                adminbar = tinymce.$( '#wpadminbar' )[0];
    179                 mceToolbar = tinymce.$( '.mce-tinymce .mce-toolbar-grp' )[0];
     179                mceToolbar = tinymce.$( '.mce-toolbar-grp', editor.getContainer() )[0];
    180180                boundary = imageNode.getBoundingClientRect();
    181181                boundaryMiddle = ( boundary.left + boundary.right ) / 2;
    182182                boundaryVerticalMiddle = ( boundary.top + boundary.bottom ) / 2;