TinyMCE: fix setting of zIndex on the dialogs.

Props subrataemfluence, azaozz.
See #43984.
Built from https://develop.svn.wordpress.org/trunk@43181


git-svn-id: http://core.svn.wordpress.org/trunk@43010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2018-05-08 20:54:22 +00:00
parent 798e3dc84d
commit 4a3b42a09e
3 changed files with 4 additions and 4 deletions

View File

@ -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;
} }
} ); } );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0-alpha-43180'; $wp_version = '5.0-alpha-43181';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.