Page MenuHomePhabricator

VisualEditor: Editing a part of text of a link doesn't work (or this shouldn't be allowed)
Closed, ResolvedPublic

Description


Version: unspecified
Severity: enhancement

Details

Reference
bz33088
TitleReferenceAuthorSource BranchDest Branch
Make sure that ZPair and ZMap serializers/deserializers operate in normal formrepos/abstract-wiki/wikifunctions/function-evaluator!103genghT350887main
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:59 PM
bzimport set Reference to bz33088.

If I do this, it seems the whole link is treated as a single link pointing to the target of the first part of the link.

In the given sample text, I can select "science" in the first link and edit its target to "dummy" but in generated source, it still says "In [[Computer_science|computer science]]...". If I try to edit link of "science" again, I can still see "dummy".

Mass-moving items into VisualEditor product

Mass-move out of "General" to "User Interface".

Partly fixed in https://gerrit.wikimedia.org/r/#/c/14108/
Now selects entire annotated range when inspecting existing link.
TODO: need to properly clear link annotations when modifying.

Fixed in https://gerrit.wikimedia.org/r/#/c/16529/
Only adjusting selection if a user selects a single link. If multiple links are selected, we assume that the user's intention is to replace with a single new link. If that happens, all previous links are cleared and the new link is applied to selected range.