WordPress.org

Make WordPress Core

Changeset 40990


Ignore:
Timestamp:
07/01/2017 08:32:12 PM (2 years ago)
Author:
azaozz
Message:

Text widget: bump the TinyMCE modals z-index to 500001 so they show in the Customizer.

Props greuben.
Fixes #41158 for trunk.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/widgets/text-widgets.js

    r40941 r40990  
    121121                    wp.editor.remove( id );
    122122                }
     123
     124                // Adjust z-index for the customizer.
     125                window.tinymce.ui.FloatPanel.zIndex = 500001;
    123126
    124127                wp.editor.initialize( id, {
  • trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

    r40587 r40990  
    22( function( tinymce ) {
    33// Set the minimum value for the modals z-index higher than #wpadminbar (100000)
    4 tinymce.ui.FloatPanel.zIndex = 100100;
     4if ( tinymce.ui.FloatPanel.zIndex < 100100 ) {
     5    tinymce.ui.FloatPanel.zIndex = 100100;
     6}
    57
    68tinymce.PluginManager.add( 'wordpress', function( editor ) {
Note: See TracChangeset for help on using the changeset viewer.