WordPress.org

Make WordPress Core

Changeset 32958


Ignore:
Timestamp:
06/26/2015 08:28:59 PM (6 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wplink.js

    r32932 r32958  
    9595
    9696        open: function( editorId ) {
    97             var ed;
    98 
    99             $( document.body ).addClass( 'modal-open' );
     97            var ed,
     98                $body = $( document.body );
     99
     100            $body.addClass( 'modal-open' );
    100101
    101102            wpLink.range = null;
     
    112113
    113114            if ( typeof tinymce !== 'undefined' ) {
     115                // Make sure the link wrapper is the last element in the body.
     116                // Fixes z-index bug in iOS.
     117                if ( tinymce.Env.iOS ) {
     118                    $body.append( inputs.backdrop, inputs.wrap );
     119                }
     120
    114121                ed = tinymce.get( wpActiveEditor );
    115122
Note: See TracChangeset for help on using the changeset viewer.