Make WordPress Core

Ticket #41158: 41158.2.diff

File 41158.2.diff, 1.1 KB (added by westonruter, 7 years ago)
  • src/wp-admin/js/widgets/text-widgets.js

    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( $ ) { 
    130130                                        wp.editor.remove( id );
    131131                                }
    132132
    133                                 // Adjust z-index for the customizer.
    134                                 window.tinymce.ui.FloatPanel.zIndex = 500001;
    135 
    136133                                wp.editor.initialize( id, {
    137134                                        tinymce: {
    138135                                                wpautop: true
  • src/wp-includes/class-wp-customize-manager.php

    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 { 
    33383338         * @since 3.4.0
    33393339         */
    33403340        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
    33413343                foreach ( $this->controls as $control ) {
    33423344                        $control->enqueue();
    33433345                }