Page MenuHomePhabricator

Inserting an external link in source mode creates incorrect wikitext
Closed, ResolvedPublic

Description

  1. Open VE in source mode. Place the cursor in an empty paragraph.
  2. Open the link tool, type a url into the external tab http://example.org, and press insert.

Observed
[http://example.org]http://example.org is inserted
Expected
[http://example.org] is inserted (a numbered external link, matching visual mode)

Event Timeline

Change #1129294 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] MWWikitextLinkAnnotationInspector: Improve external link behaviour

https://gerrit.wikimedia.org/r/1129294

Change #1129294 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] MWWikitextLinkAnnotationInspector: Improve external link behaviour

https://gerrit.wikimedia.org/r/1129294