Page MenuHomePhabricator

VisualEditor: After adding a link, cursor appears before rather than after the new insertion
Closed, ResolvedPublic

Description

When adding a link from scratch (without marking an existing word first) the cursor ends up being at the beginning of the new link rather than at its end -- which stops fluent typing.

Reproduce:

  1. Go to an RTL wiki.
  2. Go to a new sentence or new paragraph (cursor should be in an empty space)
  3. Create link, followed by enter/enter to close the inspector
  4. The cursor appears at the left of the word (which is the beginning in RTL) rather than the right of the word.

Version: unspecified
Severity: normal

Details

Reference
bz53560

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:04 AM
bzimport set Reference to bz53560.

This was actually not just for RTL wikis, and the submitted patch fixes the problem for both directions in Annotation Inspector (for both links and languages)

Change 81872 had a related patch set uploaded by Jforrester:
Cursor fix after link insertion

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

Change 81872 merged by jenkins-bot:
Cursor fix after link insertion

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