Page MenuHomePhabricator

When replacing link text, link turns into plain text after saving page
Closed, DuplicatePublic

Description

  1. Put cursor inside a link that has link text containing at least two words (e.g. equiv of [[Foo bar ]])
  2. Select first word.
  3. Type another word in its place. Observe how this new text is (correctly; as expected) part of the same link as before.
  4. Move cursor elsewhere in document (or; Click on Save page).

Expected:
Nothing changes.

Actual:
The text that was added is now no longer a link.

Note:
Replacing words at the start and end of a link label has been a long-time problem in VisualEditor. I was glad to see this finally work, but somehow it didn't work all the way.

Observed at www.mediawiki.org in Google Chrome.

Event Timeline

Krinkle created this task.May 16 2015, 12:27 AM
Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added a subscriber: Krinkle.
Restricted Application added a project: VisualEditor. · View Herald TranscriptMay 16 2015, 12:27 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krinkle updated the task description. (Show Details)May 16 2015, 12:27 AM
Krinkle set Security to None.
Krinkle updated the task description. (Show Details)