mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
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:
parent
8b77a613c1
commit
d688a2ddc2
@ -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() ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user