Page MenuHomePhabricator

VisualEditor: Support the <code> tag as a text annotation
Closed, ResolvedPublic


VisualEditor should support adding and editing the code tag (<code></code>).

Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:44 AM
bzimport set Reference to bz51590.

Change 74563 had a related patch set uploaded by Jforrester:
De-alienate <code>foo</code> blocks (code element)

Change 74563 merged by jenkins-bot:
De-alienate <code>foo</code> blocks (code element)

With the latest master, <code> blocks are no longer alienated (so you can edit their contents and copy them), but we haven't added the user interaction tools to set or unset the styling.

Change 76074 had a related patch set uploaded by Esanders:
'CodeScript' => 'Code'

Change 76077 had a related patch set uploaded by Esanders:
Code annotation

Change 76074 merged by jenkins-bot:
'CodeScript' => 'Code'

Change 76077 merged by jenkins-bot:
Code annotation button

This is now done, but marked as "experimental" (so it will show up on and the test wikis, but not on other production wikis like the Wikipedias). This is mostly because we don't yet have a proper design for how to have lots of different text annotations (currently we're tracking bugs to create an additional eight on top of the four that now exist including this one). Once we've got a design for that, we'll switch it out of experimental mode, but I'll mark this as fixed for now.