Changeset 49911
- Timestamp:
- 12/29/2020 01:19:14 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js
r47122 r49911 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 } … … 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
Note: See TracChangeset
for help on using the changeset viewer.