[wp-trac] [WordPress Trac] #35760: Provide API for TinyMCE editor to be dynamically instantiated via JS

WordPress Trac noreply at wordpress.org
Tue May 9 21:58:41 UTC 2017


#35760: Provide API for TinyMCE editor to be dynamically instantiated via JS
-------------------------+-------------------------
 Reporter:  westonruter  |       Owner:  azaozz
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.8
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  needs-patch  |     Focuses:  javascript
-------------------------+-------------------------

Comment (by azaozz):

 > ...loading problems in the customizer.

 `WP_Widget_Visual_Text::enqueue_admin_scripts()` is called twice in the
 customizer. Both of the actions run there:
 {{{
 add_action( 'admin_print_scripts-widgets.php', array( $this,
 'enqueue_admin_scripts' ) );
 add_action( 'customize_controls_print_scripts', array( $this,
 'enqueue_admin_scripts' ) );
 }}}

 That interferes with another test plugin doing `wp_enqueue_editor()` that
 I used. Looking further into this, but in the meantime it would be good to
 fix the "double loading" call in `WP_Widget_Visual_Text`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35760#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list