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 {nav +} menu item that, when tapped, will show the following tool(s) [for now]:
-- {nav Add citation}
-- {nav Insert function}
- Locate this new {nav +} menu next to the existing {nav ✏️} editing mode switcher.
-- //This means the order of the tools will be as follows (left to right): Exit editor, undo, text formatting, link, {nav +}, switch editing mode, publish
Two notes about the above:
1. Abstract Wikipedia is assuming responsibility for adding the {nav Insert function} within the {nav + menu}
2. We will decide what additional tools to introduce within the {nav +} 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
- [x] 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 {nav Add link} tool within the {nav +} 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.//
- [x] 2.What icon will we use in the editing toolbar to represent this new menu?
-- We'll use the same {nav +} that is used on desktop for the same purpose://
--- {F58028745}
- [ ] 3. What – if any – additional tools beyond {nav Insert function} and the tool we decide to hide in "1." will we add to the menu this ticket will introduce?
=== Context
At present, four tools are available within the mobile visual editor's editing toolbar excluding the meta/navigational actions ({nav X}, {nav Switch editing mode}, and {nav →}):
|Current state (mobile)
|---
| {F58028735} |
| Tools: {nav Undo}, {nav Text formatting}, {nav Add link}, {nav Add citation}