diff --git i/src/wp-admin/js/widgets/text-widgets.js w/src/wp-admin/js/widgets/text-widgets.js
index dfd2a88fc1..7932606e3d 100644
i
|
w
|
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 i/src/wp-includes/class-wp-editor.php w/src/wp-includes/class-wp-editor.php
index 86966d6f6b..153b976d90 100644
i
|
w
|
final class _WP_Editors { |
864 | 864 | window.wp = window.wp || {}; |
865 | 865 | window.wp.editor = window.wp.editor || {}; |
866 | 866 | window.wp.editor.getDefaultSettings = function() { |
| 867 | <?php if ( is_customize_preview() ) : ?> |
| 868 | // Adjust z-index for the customizer. |
| 869 | if ( tinymce.ui.FloatPanel.zIndex < 500001 ) { |
| 870 | tinymce.ui.FloatPanel.zIndex = 500001; |
| 871 | } |
| 872 | <?php endif; ?> |
867 | 873 | return { |
868 | 874 | tinymce: <?php echo $settings; ?>, |
869 | 875 | quicktags: { |