This task involves the work of creating a space within the mobile visual editor's editing toolbar where additional tools can live.
While generically useful, this work is being prioritized in this moment to offer people the ability to insert functions within Wikipedia articles (T376839).
Requirements
Within the mobile visual editor's toolbar...
- Introduce a new + menu item that, when tapped, will show the following tool(s) [for now]:
- Add citation
- Insert function
- Locate this new + menu next to the existing ✏️ editing mode switcher.
- //This means the order of the tools will be as follows (left to right): Exit editor, undo, text formatting, link, +, switch editing mode, publish
Two notes about the above:
- Abstract Wikipedia is assuming responsibility for adding the Insert function within the + menu
- We will decide what additional tools to introduce within the + menu we're introducing here in T385851
Patch demo
- https://120212ac9b.catalyst.wmcloud.org/wiki/Douglas_Adams#/editor/0 via @zoe
- Last updated: 28 January
Open questions
- 1. Which of the existing four editing tools (see below) will be moved within the new menu this ticket will introduce?
- To start, we'll move the Add link tool within the + menu item that will take its place
Note: we will answer this question in T376839.Rather than blocking an initial implementation on the completion of T376839, we're going to instead use this data to [potentially] adjust the proof of concept we're building before it's completed.
- 2.What icon will we use in the editing toolbar to represent this new menu?
- We'll use the same + that is used on desktop for the same purpose://
- We'll use the same + that is used on desktop for the same purpose://
- 3.
What – if any – additional tools beyond Insert function and the tool we decide to hide in "1." will we add to the menu this ticket will introduce?- We're addressing this question in T385851
Context
At present, four tools are available within the mobile visual editor's editing toolbar excluding the meta/navigational actions (X, Switch editing mode, and →):
| Current state (mobile) |
|---|
| Tools: Undo, Text formatting, Add link, Add citation |





