Page MenuHomePhabricator

Editing toolbar: As an editor on the iOS app, I would like to be able to easily insert Wikitext syntax
Closed, ResolvedPublic

Description

Why are we doing this?

As we begin to build out the editing interface on iOS we would like to create a way for users to easily (visually) insert Wikitext syntax into articles (eg. without having to have the syntax memorized)

User story

As an editor on the iOS app, I would like to be able to easily insert Wikitext syntax

Mocks

Toolbar with keyboard scrolled awayToolbar with keyboardToolbar with keyboard, second set of toolsContextual highlight toolbar
01 Editing.png (1×750 px, 179 KB)
02 Editing with keyboard open.png (1×750 px, 163 KB)
08 Correcting error.png (1×750 px, 162 KB)
05 Highlight and contextual toolbar.png (1×750 px, 184 KB)
Zeplin: https://zpl.io/bz1KPEGZeplin: https://zpl.io/VQ9l6jmZeplin: https://zpl.io/2jPAg6WZeplin: https://zpl.io/beLl6Rz

Design details

  • When the user has dismissed the keyboard the toolbar still shows
  • The toolbar has a blue toggle button which enables users to see a second set of actions that they can take
  • When the user highlights text, a contextual version of the toolbar is shown, which places a focus on actions that can be taken on highlighted text

Toolbar elements

ToolIconAction taken when tappedToolbar view
Text formattingBold, italic, underlined AOpens the text formatting sub menuMain
Header formatting'H2' with two lines below itOpens the header sub menuMain
Add citationPage with bookmarkInsert basic citation syntaxMain
Add linkLink iconInsert basic link syntaxMain
View more tools (R)Blue circle with right facing chevrontransitions from main toolbar to secondary toolbar viewMain
View more tools (L)Blue circle with left facing chevrontransitions from secondary toolbar to main toolbar viewSecondary
Decrease indentfour lines and a left facing chevronDecreases indentation level (colon based)Secondary
Increase indentfour lines and a right facing chevronIncreases indentation level (colon based)Secondary
Cursor up^moves cursor up a lineSecondary
Cursor downVmoves cursor down a lineSecondary
Cursor left<moves cursor leftSecondary
Cursor right>moves cursor rightSecondary
Nice to have: Find in pagepage with search glassopens up find in pageSecondary
More...Opens up the 'More' sub menuSecondary
BoldBold Bbolds highlighted textHighlight toolbar
ItalicItalic Iitalicizes highlighted textHighlight toolbar
Remove formatting'No' circleremoves formatting (Wikisyntax) from highlighted text (and only in range)Highlight toolbar
Add citationPage with bookmarkInsert basic citation syntaxHighlight toolbar
Add linkLink iconInsert basic link syntaxHighlight toolbar
More formattingBlue circle with a plusOpens up the text formatting sub menuHighlight toolbar
List itemlist iconMakes whole line a part of a listMain
Numbered listnumbered list iconMakes whole line a part of a numbered listMain

Icon assets

To do:

  • Update icons to iOS style
  • Theme the toolbar
  • iPad

Event Timeline

JMinor subscribed.

Updated the table based on our re-scope discussion.