Ticket #52046: 52046.diff
File 52046.diff, 1.0 KB (added by , 4 years ago) |
---|
-
src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js
16 16 wpTooltips = false; 17 17 18 18 if ( $ ) { 19 // Runs as soon as TinyMCE has started initializing, while plugins are loading. 20 // Handlers attached after the `tinymce.init()` call may not get triggered for this instance. 19 21 $( document ).triggerHandler( 'tinymce-editor-setup', [ editor ] ); 20 22 } 21 23 … … 540 542 }); 541 543 542 544 if ( $ ) { 543 $( document ).triggerHandler( 'tinymce-editor-init', [editor] ); 545 // Run on DOM ready. Otherwise TinyMCE may initialize earlier and handlers attached 546 // on DOM ready of after the `tinymce.init()` call may not get triggered. 547 $( function() { 548 $( document ).triggerHandler( 'tinymce-editor-init', [editor] ); 549 }); 544 550 } 545 551 546 552 if ( window.tinyMCEPreInit && window.tinyMCEPreInit.dragDropUpload ) {