Page MenuHomePhabricator

New Wikitext Editor: Unable to add new group of tools to VisualEditor's toolbar
Open, Needs TriagePublic

Description

Steps to reproduce

  1. Enable "New wikitext mode" at https://test.wikipedia.org/wiki/Special:Preferences#mw-prefsection-betafeatures
  2. Add a custom Tool to its toolbar (it appears when I go to "Insert" > "More") using a personal JavaScript such as:

https://test.wikipedia.org/wiki/User:He7d3r/common.js?oldid=430663

  1. Attempt to move the tool into a *new* custom group instead by adding a few more lines:

https://test.wikipedia.org/wiki/User:He7d3r/common.js?oldid=430663&diff=430667

Expected result
There should be a new menu with the tool.

Actual result
It is still inside the "Insert" menu.

Did I miss something?

Event Timeline

The toolbar does not include all groups automatically, in the same way that groups include all tools.

In order to change the layout of groups within the toolbar (or add more groups) you need to modify the target's static property 'toolbarGroups'.

There isn't really a clean API for this as it's not something we encourage at the moment, and it needs to be considered separately for different target types (Desktop, Mobile, Content Translation, Flow etc.)

JTannerWMF subscribed.

Unfortunately, the Editing Team can not prioritize this at this time.