mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-29 19:51:27 +01:00
Widgets: Bump the TinyMCE panels' base z-index
to 500001 so they show in the Customizer (such as in the Text widget).
Merges [40990] and [40995] onto 4.8 branch. Props greuben, westonruter. Fixes #41158 for 4.8.1. Built from https://develop.svn.wordpress.org/branches/4.8@41068 git-svn-id: http://core.svn.wordpress.org/branches/4.8@40920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d68bbe13cb
commit
e875520cec
@ -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' );
|
||||
});
|
||||
|
||||
|
2
wp-admin/js/customize-controls.min.js
vendored
2
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,7 +1,9 @@
|
||||
/* global getUserSetting, setUserSetting */
|
||||
( function( tinymce ) {
|
||||
// Set the minimum value for the modals z-index higher than #wpadminbar (100000)
|
||||
tinymce.ui.FloatPanel.zIndex = 100100;
|
||||
if ( tinymce.ui.FloatPanel.zIndex < 100100 ) {
|
||||
tinymce.ui.FloatPanel.zIndex = 100100;
|
||||
}
|
||||
|
||||
tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
||||
var wpAdvButton, style,
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue
Block a user