Page MenuHomePhabricator

Link context item appears when selecting image whose entire caption is a link
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce:

1.Insert an image
2.Insert a link in the media Setting dialog and click on Insert
3.Now select the image and when the context menu for the link appears from outside, click on the Edit button on it
4.Change the link target to something else and click on "Done"

Observed Result:
The change in the link does not get applied

Screen_Shot_2015-04-06_at_4.27.31_PM.png (365×217 px, 31 KB)

Screen_Shot_2015-04-06_at_4.27.37_PM.png (354×254 px, 48 KB)

Event Timeline

Ryasmeen raised the priority of this task from to Needs Triage.
Ryasmeen updated the task description. (Show Details)
Ryasmeen subscribed.
Ryasmeen added a project: VisualEditor.
Ryasmeen set Security to None.
Catrope renamed this task from The link inside media settings dialog does not get changed when its been modified from the outer context menu to Link context item appears when selecting image whose entire caption is a link.Apr 7 2015, 12:05 AM

That inspector shouldn't even be there. Seems to be because getAnnotationsFromRange() doesn't take ignoreChildren into account?

Change 202624 had a related patch set uploaded (by Catrope):
Skip ignoreChildren nodes in getAnnotatedRangeFromSelection

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

Change 202624 merged by jenkins-bot:
Skip ignoreChildren nodes in getAnnotatedRangeFromSelection

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