Silent switch to "External link" mode disrupts cursor position
Open, LowPublic

Description

  1. Type some text. E.g. example.org
  2. Select it and create a link. By default one is now on the "Search pages" tab, with text example.org.
  3. Put cursor at the start and type https://www.

Expected result:
https://www.example.org

Actual result:

https://Example.orgwww.

After typing https://, VisualEditor automatically switched to the External link tab of the link widget. While this is nice, it also involved swapping out the widget content with that of the external link widget. While the text was preserved (by coping the existing content and filling it into the other widget), doing so loses the current typing context and thus the cursor position.

Krinkle created this task.Jun 19 2017, 3:44 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 19 2017, 3:44 PM
Deskana triaged this task as Low priority.Jun 20 2017, 7:14 PM
Deskana moved this task from To Triage to Backlog on the VisualEditor board.Jun 20 2017, 7:31 PM