Page MenuHomePhabricator

VisualEditor: After saving the page, external links in media always take preference in auto-numbering irrespective of their locations
Open, LowPublicBUG REPORT

Description

Environment- test2, beta, production

1> insert an external link to a blank page. Number generated for this link is “1”.
2> hit enter a couple of times, to move the cursor down
3> Click to insert media ,in the media settings dialog enter the same external link in the caption sub-editor.Click to insert.
4> notice the auto-numbers generated beside the external links.Number generated for the link in media is “2”.
5> Save the page. And notice that the media file external link’s auto-number has now changed to #1 and the external link in the page is #2.

See screencast.


Version: unspecified
Severity: trivial

Details

Reference
bz72625

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:57 AM
bzimport set Reference to bz72625.

Created attachment 16927
Auto numbers generated before saving the page.

Attached:

s1.png (379×1 px, 17 KB)

Created attachment 16928
Numbers change after saving the document

Attached:

s2.png (305×1 px, 14 KB)

Confirmed in betalabs - the steps to reproduce the bug are exactly as described by Ritu.

This feels like we should fix this in MediaWiki rather than in VisualEditor. Alternatively, we could just wait for Parsoid HTML for read mode to come along, which fixes this that way instead. Meh.

Aklapper changed the subtype of this task from "Task" to "Bug Report".Feb 5 2022, 2:33 PM
Aklapper removed subscribers: rmoen, TrevorParscal.