mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 01:19:51 +01:00
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:
parent
a16d16449d
commit
05325257c9
@ -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' );
|
||||
});
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user