wpLink: Make sure the link wrapper is the last element in the body, otherwise the inline editor toolbar may show up above the backdrop.

props azaozz.
fixes #33268.

git-svn-id: https://develop.svn.wordpress.org/trunk@33588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-08-06 02:16:54 +00:00
parent 1872e759ea
commit 1dcb93b541

View File

@ -113,11 +113,9 @@ 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 );
}
// Make sure the link wrapper is the last element in the body,
// or the inline editor toolbar may show above the backdrop.
$body.append( inputs.backdrop, inputs.wrap );
ed = tinymce.get( wpActiveEditor );