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:
parent
94b72ccba4
commit
20e753a8c7
@ -166,7 +166,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
|||||||
adminbar = tinymce.$( '#wpadminbar' )[0],
|
adminbar = tinymce.$( '#wpadminbar' )[0],
|
||||||
mceToolbar = tinymce.$( '.mce-tinymce .mce-toolbar-grp' )[0],
|
mceToolbar = tinymce.$( '.mce-tinymce .mce-toolbar-grp' )[0],
|
||||||
adminbarHeight = 0,
|
adminbarHeight = 0,
|
||||||
boundary = editor.selection.getRng().getBoundingClientRect(),
|
boundary = editor.selection.getNode().getBoundingClientRect(),
|
||||||
boundaryMiddle = ( boundary.left + boundary.right ) / 2,
|
boundaryMiddle = ( boundary.left + boundary.right ) / 2,
|
||||||
boundaryVerticalMiddle = ( boundary.top + boundary.bottom ) / 2,
|
boundaryVerticalMiddle = ( boundary.top + boundary.bottom ) / 2,
|
||||||
spaceTop = boundary.top,
|
spaceTop = boundary.top,
|
||||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user