From 1dcb93b541706abf897e4c21d71946f6b5ad6c41 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 6 Aug 2015 02:16:54 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/wplink.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/js/wplink.js b/src/wp-includes/js/wplink.js index bc4cbd794e..2fb3568deb 100644 --- a/src/wp-includes/js/wplink.js +++ b/src/wp-includes/js/wplink.js @@ -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 );