TinyMCE, inline link toolbar: fix z-index bug in iOS Safari.

See #32604.
Built from https://develop.svn.wordpress.org/trunk@32958


git-svn-id: http://core.svn.wordpress.org/trunk@32929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-06-26 20:29:24 +00:00
parent 7a4c8d8977
commit 1f75220e9a
3 changed files with 11 additions and 4 deletions

View File

@ -94,9 +94,10 @@ var wpLink;
},
open: function( editorId ) {
var ed;
var ed,
$body = $( document.body );
$( document.body ).addClass( 'modal-open' );
$body.addClass( 'modal-open' );
wpLink.range = null;
@ -111,6 +112,12 @@ var wpLink;
this.textarea = $( '#' + window.wpActiveEditor ).get( 0 );
if ( typeof tinymce !== 'undefined' ) {
// Make sure the link wrapper is the last element in the body.
// Fixes z-index bug in iOS.
if ( tinymce.Env.iOS ) {
$body.append( inputs.backdrop, inputs.wrap );
}
ed = tinymce.get( wpActiveEditor );
if ( ed && ! ed.isHidden() ) {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32957';
$wp_version = '4.3-alpha-32958';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.