WordPress.org

Make WordPress Core

Changeset 43181


Ignore:
Timestamp:
05/08/2018 08:53:12 PM (3 years ago)
Author:
azaozz
Message:

TinyMCE: fix setting of zIndex on the dialogs.

Props subrataemfluence, azaozz.
See #43984.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r42648 r43181  
    92539253
    92549254        // Make sure TinyMCE dialogs appear above Customizer UI.
    9255         $( document ).one( 'wp-before-tinymce-init', function() {
    9256             if ( ! window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001 ) {
     9255        $( document ).one( 'tinymce-editor-setup', function() {
     9256            if ( window.tinymce.ui.FloatPanel && ( ! window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001 ) ) {
    92579257                window.tinymce.ui.FloatPanel.zIndex = 500001;
    92589258            }
Note: See TracChangeset for help on using the changeset viewer.