Make WordPress Core

Changeset 30558


Ignore:
Timestamp:
11/25/2014 01:21:35 AM (11 years ago)
Author:
azaozz
Message:

TinyMCE: use the actual image node when calculating the position of the toolbar. Fixes a bug in old IE. See #30147.

File:
1 edited

Legend:

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

    r30435 r30558  
    167167            mceToolbar = tinymce.$( '.mce-tinymce .mce-toolbar-grp' )[0],
    168168            adminbarHeight = 0,
    169             boundary = editor.selection.getRng().getBoundingClientRect(),
     169            boundary = editor.selection.getNode().getBoundingClientRect(),
    170170            boundaryMiddle = ( boundary.left + boundary.right ) / 2,
    171171            boundaryVerticalMiddle = ( boundary.top + boundary.bottom ) / 2,
Note: See TracChangeset for help on using the changeset viewer.