WordPress.org

Make WordPress Core

Changeset 31235


Ignore:
Timestamp:
01/18/2015 05:55:39 PM (6 years ago)
Author:
azaozz
Message:

TinyMCE: fix vertical positioning of the image toolbar when there are several instances of the editor. Props avryl, fixes #31028.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r31180 r31235  
    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;
Note: See TracChangeset for help on using the changeset viewer.