Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Update text-widgets.js to delay instantiating TinyMCE for 200ms
Browse files Browse the repository at this point in the history
  • Loading branch information
KTS915 authored Nov 2, 2023
1 parent dd07fb8 commit 470931e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/js/widgets/text-widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ wp.textWidgets = ( function( $ ) {
* @return {void}
*/
component.handleWidgetAdded = function handleWidgetAdded( event, widgetContainer ) {
var widgetForm, idBase, widgetControl, widgetId, animatedCheckDelay = 50, renderWhenAnimationDone, fieldContainer, syncContainer;
var widgetForm, idBase, widgetControl, widgetId, animatedCheckDelay = 200, renderWhenAnimationDone, fieldContainer, syncContainer;
widgetForm = widgetContainer.find( '> .widget-inside > .form, > .widget-inside > form' ); // Note: '.form' appears in the customizer, whereas 'form' on the widgets admin screen.

if ( widgetContainer instanceof jQuery ) {
Expand Down

0 comments on commit 470931e

Please sign in to comment.