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

See #32604.

git-svn-id: https://develop.svn.wordpress.org/trunk@32958 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-06-26 20:28:59 +00:00
parent 8b77a613c1
commit d688a2ddc2
1 changed files with 9 additions and 2 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() ) {