[wp-trac] [WordPress Trac] #37844: No filter / js trigger for changing the wp popup toolbar

WordPress Trac noreply at wordpress.org
Fri Aug 26 21:04:11 UTC 2016


#37844: No filter / js trigger for changing the wp popup toolbar
-----------------------------+-----------------------------
 Reporter:  programmin       |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  4.5.3
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 It seems there is no easy way to add a button to the (align, edit, remove)
 toolbar in Wordpress.

 While the editor.wp._createToolbar is something any JS can access, (wp-
 includes/js/tinymce/plugins/wordpress/plugin.js) it's apparently used in
 the MCE preinit action (wp-
 includes/js/tinymce/plugins/wordpress/plugin.js), which is also the action
 in which it was created.

 If it were created before, other scripts could at least possibly duck-
 punch it early to make a createToolbar that has a modified toolbar with
 extra functions.

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


More information about the wp-trac mailing list