Make WordPress Core

Changeset 40995


Ignore:
Timestamp:
07/03/2017 09:17:26 PM (7 years ago)
Author:
azaozz
Message:

Customizer: improve setting the TinyMCE modals z-index.

Props westonruter, greuben.
See #41158.

Location:
trunk/src/wp-admin/js
Files:
2 edited

Legend:

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

    r40704 r40995  
    55085508        } ());
    55095509
     5510        // Make sure TinyMCE dialogs appear above Customizer UI.
     5511        $( document ).one( 'wp-before-tinymce-init', function() {
     5512            if ( ! window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001 ) {
     5513                window.tinymce.ui.FloatPanel.zIndex = 500001;
     5514            }
     5515        } );
     5516
    55105517        api.trigger( 'ready' );
    55115518    });
  • trunk/src/wp-admin/js/widgets/text-widgets.js

    r40991 r40995  
    130130                    wp.editor.remove( id );
    131131                }
    132 
    133                 // Adjust z-index for the customizer.
    134                 window.tinymce.ui.FloatPanel.zIndex = 500001;
    135132
    136133                wp.editor.initialize( id, {
Note: See TracChangeset for help on using the changeset viewer.