[wp-trac] [WordPress Trac] #49964: Wrap _WP_Editors#print_tinymce_scripts in a hook

WordPress Trac noreply at wordpress.org
Mon Apr 20 22:05:18 UTC 2020


#49964: Wrap _WP_Editors#print_tinymce_scripts in a hook
-----------------------------------------+-----------------------------
 Reporter:  sarayourfriend               |      Owner:  (none)
     Type:  enhancement                  |     Status:  new
 Priority:  normal                       |  Milestone:  Awaiting Review
Component:  TinyMCE                      |    Version:
 Severity:  normal                       |   Keywords:
  Focuses:  administration, performance  |
-----------------------------------------+-----------------------------
 In order to facilitate
 [https://github.com/WordPress/gutenberg/issues/21738 asynchronously
 loading TinyMCE in Gutenberg] we need to be able to prevent WordPress from
 automatically enqueueing `wp-tinymce` and injecting inline i18n
 initialization scripts. (There's plenty of context in the Gutenberg issue
 including related tickets, so I'll try not to repeat any of that here.)

 I'd like to propose wrapping
 [https://developer.wordpress.org/reference/classes/_wp_editors/print_tinymce_scripts/
 _WP_Editors#print_tinymce_scripts] in an action that Gutenberg could use
 for when the editor is loading.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49964>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list