Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#37844 closed feature request (wontfix)

No filter / js trigger for changing the wp popup toolbar

Reported by: programmin's profile programmin Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.3
Component: TinyMCE Keywords:
Focuses: Cc:

Description (last modified by desrosj)

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 (2)

#1 @programmin
8 years 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.
	 */

#2 @desrosj
6 years ago

  • Component changed from General to TinyMCE
  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

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 Gutenberg GitHub repository.

Note: See TracTickets for help on using tickets.