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

Built from https://develop.svn.wordpress.org/trunk@30558


git-svn-id: http://core.svn.wordpress.org/trunk@30547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-11-25 01:22:21 +00:00
parent 94b72ccba4
commit 20e753a8c7
4 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
adminbar = tinymce.$( '#wpadminbar' )[0],
mceToolbar = tinymce.$( '.mce-tinymce .mce-toolbar-grp' )[0],
adminbarHeight = 0,
boundary = editor.selection.getRng().getBoundingClientRect(),
boundary = editor.selection.getNode().getBoundingClientRect(),
boundaryMiddle = ( boundary.left + boundary.right ) / 2,
boundaryVerticalMiddle = ( boundary.top + boundary.bottom ) / 2,
spaceTop = boundary.top,

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-beta2-30557';
$wp_version = '4.1-beta2-30558';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.