Page MenuHomePhabricator

CodeMirror 6 does not handle gallery image correctly in terms of auto-completion and modifier clicks
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Open WTE2010 with CodeMirror 6 beta feature enabled, and then enable the auto-completion and modifier click extensions.
  • Paste the following wikitext into the textarea:
<gallery>Foobar.jpg</gallery>
  • Mod-click on Foobar.jpg.
  • Put the cursor after Foobar.jpg and then type Shift-Enter to explicitly trigger auto-completion.

What happens?:

With the modifier click, a new tab for a non-existing page Foobar.jpg is opened. In addition, no suggestion is available from auto-completion.

What should have happened instead?:

With the modifier click, a new tab for File:Foobar.jpg should be opened. Auto-completion should suggest Foobar.jpg.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Change #1216223 had a related patch set uploaded (by Bhsd; author: Bhsd):

[mediawiki/extensions/CodeMirror@master] openLinks and completionSource: use file prefix for gallery images

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