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

WordPress Trac noreply at wordpress.org
Fri Apr 19 15:43:45 UTC 2019


#37844: No filter / js trigger for changing the wp popup toolbar
-----------------------------+----------------------
 Reporter:  programmin       |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  TinyMCE          |     Version:  4.5.3
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by desrosj):

 * status:  new => closed
 * resolution:   => wontfix
 * component:  General => TinyMCE
 * milestone:  Awaiting Review =>


Old description:

> 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.

New description:

 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.

--

Comment:

 Hey @programmin,

 I'm sorry that this took so long to receive a response.

 I am going to close this out as a `wontfix`. The Classic Editor is not
 accepting any new enhancements or feature requests after the release of
 the new block editor.

 You should now be able to add/remove/alter this toolbar in the new editor.
 If you are not able to, an issue will need to be opened upstream on the
 [https://github.com/wordpress/gutenberg Gutenberg GitHub repository].

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


More information about the wp-trac mailing list