WordPress.org

Make WordPress Core

Opened 13 months ago

Last modified 9 months ago

#37844 new feature request

No filter / js trigger for changing the wp popup toolbar

Reported by: programmin Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.5.3
Component: General Keywords:
Focuses: Cc:

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.

Change History (1)

#1 @programmin
9 months ago

I noticed this looking through that code again... any chance this can be pluggable before this feature is "finalized"?

        /**
	 * Experimental: create a floating toolbar.
	 * This functionality will change in the next releases. Not recommended for use by plugins.
	 */
Note: See TracTickets for help on using tickets.