TinyMCE: fix setting of zIndex on the dialogs.
Props subrataemfluence, azaozz. See #43984. git-svn-id: https://develop.svn.wordpress.org/trunk@43181 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a631c2378d
commit
d4676a426c
@ -9252,8 +9252,8 @@
|
|||||||
api.bind( 'change', startAutosaving );
|
api.bind( 'change', startAutosaving );
|
||||||
|
|
||||||
// Make sure TinyMCE dialogs appear above Customizer UI.
|
// Make sure TinyMCE dialogs appear above Customizer UI.
|
||||||
$( document ).one( 'wp-before-tinymce-init', function() {
|
$( document ).one( 'tinymce-editor-setup', function() {
|
||||||
if ( ! window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001 ) {
|
if ( window.tinymce.ui.FloatPanel && ( ! window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001 ) ) {
|
||||||
window.tinymce.ui.FloatPanel.zIndex = 500001;
|
window.tinymce.ui.FloatPanel.zIndex = 500001;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user