TinyMCE: Set undefined FloatPanel zIndex

See [40995] for the Customizer.
Fixes #42322.



git-svn-id: https://develop.svn.wordpress.org/trunk@41993 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ella Van Dorpe 2017-10-24 16:51:50 +00:00
parent c0a61efdad
commit 7ddfa7c135
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/* global getUserSetting, setUserSetting */
( function( tinymce ) {
// Set the minimum value for the modals z-index higher than #wpadminbar (100000)
if ( tinymce.ui.FloatPanel.zIndex < 100100 ) {
if ( ! tinymce.ui.FloatPanel.zIndex || tinymce.ui.FloatPanel.zIndex < 100100 ) {
tinymce.ui.FloatPanel.zIndex = 100100;
}