Customizer: improve setting the TinyMCE modals z-index.

Props westonruter, greuben.
See #41158.

git-svn-id: https://develop.svn.wordpress.org/trunk@40995 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-07-03 21:17:26 +00:00
parent a16d16449d
commit 05325257c9
2 changed files with 7 additions and 3 deletions

View File

@ -5507,6 +5507,13 @@
} );
} ());
// Make sure TinyMCE dialogs appear above Customizer UI.
$( document ).one( 'wp-before-tinymce-init', function() {
if ( ! window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001 ) {
window.tinymce.ui.FloatPanel.zIndex = 500001;
}
} );
api.trigger( 'ready' );
});

View File

@ -130,9 +130,6 @@ 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