diff --git src/wp-admin/js/widgets/text-widgets.js src/wp-admin/js/widgets/text-widgets.js
index dfd2a88fc1..7932606e3d 100644
|
|
wp.textWidgets = ( function( $ ) { |
130 | 130 | wp.editor.remove( id ); |
131 | 131 | } |
132 | 132 | |
133 | | // Adjust z-index for the customizer. |
134 | | window.tinymce.ui.FloatPanel.zIndex = 500001; |
135 | | |
136 | 133 | wp.editor.initialize( id, { |
137 | 134 | tinymce: { |
138 | 135 | wpautop: true |
diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index 62d587bf6a..8c9cf93f9f 100644
|
|
final class WP_Customize_Manager { |
3338 | 3338 | * @since 3.4.0 |
3339 | 3339 | */ |
3340 | 3340 | public function enqueue_control_scripts() { |
| 3341 | wp_add_inline_script( 'editor', 'jQuery( document ).one( "wp-before-tinymce-init", function() { if ( ! tinymce.ui.FloatPanel.zIndex || tinymce.ui.FloatPanel.zIndex < 500001 ) { tinymce.ui.FloatPanel.zIndex = 500001; } } );' ); |
| 3342 | |
3341 | 3343 | foreach ( $this->controls as $control ) { |
3342 | 3344 | $control->enqueue(); |
3343 | 3345 | } |