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

Props greuben.
Fixes #41158 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@40990 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-07-01 20:32:12 +00:00
parent de79ff87b3
commit 0d9dbc2fea
2 changed files with 6 additions and 1 deletions

View File

@ -121,6 +121,9 @@ wp.textWidgets = ( function( $ ) {
wp.editor.remove( id );
}
// Adjust z-index for the customizer.
window.tinymce.ui.FloatPanel.zIndex = 500001;
wp.editor.initialize( id, {
tinymce: {
wpautop: true

View File

@ -1,7 +1,9 @@
/* global getUserSetting, setUserSetting */
( function( tinymce ) {
// Set the minimum value for the modals z-index higher than #wpadminbar (100000)
tinymce.ui.FloatPanel.zIndex = 100100;
if ( tinymce.ui.FloatPanel.zIndex < 100100 ) {
tinymce.ui.FloatPanel.zIndex = 100100;
}
tinymce.PluginManager.add( 'wordpress', function( editor ) {
var wpAdvButton, style,