Page MenuHomePhabricator

"Editing help" visible when editing JavaScript pages with CodeMirror 6 enabled
Closed, ResolvedPublicBUG REPORT

Description

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

  • Enable "enhanced syntax highlighting" in Beta Features
  • Edit a JavaScript page

What happens?:
The link "Editing help" is visible.

What should have happened instead?:
It should not, like what the previous CodeEditor does.

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

Other information (browser name/version, screenshots, etc.):
Currently only replicable in Beta Cluster.

Event Timeline

What is "Editing help"? In addition, I do not think CodeMirror 6 for JavaScript has been deployed for Wikipedia.

Screenshot From 2025-11-07 22-31-49.png (186×1 px, 77 KB)

It's highlighted in the image. As for CM6 for JavaScript, yes, it's included in the beta feature.

0>>! In T409402#11354205, @Diskdance wrote:

Screenshot From 2025-11-07 22-31-49.png (186×1 px, 77 KB)

It's highlighted in the image. As for CM6 for JavaScript, yes, it's included in the beta feature.

I don't see this "Editing help" anywhere on zhwiki, when editing a mainspace article or a JavaScript page. Could you provide a link?

Anyway, even with the beta feature enabled, you should not (yet) have CodeMirror available for non-wikitext. I was about to get that going next week, though! T373711 is the task for that, if you'd like to follow along.

I don't see this "Editing help" anywhere on zhwiki, when editing a mainspace article or a JavaScript page. Could you provide a link?

Oops, I forgot to mention that I encountered this issue on zhwiki Beta Cluster.
One link could be https://zh.wikipedia.beta.wmcloud.org/w/index.php?title=MediaWiki:Common.js&action=edit.

I still don't see the "editing help" like the screenshot :(

Is it still there in safemode? https://zh.wikipedia.beta.wmcloud.org/w/index.php?title=MediaWiki:Common.js&action=edit&safemode=1

Another thing to try is uselang=qqx so we can see what message is being used, and with that I can figure out where it's coming from. Or heck, if you are able to just copy/paste the text here I may be able to find it; Sorry, I don't understand Chinese enough to be able to type the characters or know if an OCR transcription is accurate.

Is it still there in safemode?

It's there even in safe mode.

Maybe the cause I provided is a bit scattered: the "Enhanced syntax highlighting" beta feature also need to be enabled in Beta Cluster to trigger this bug.

Relevant messages are (edithelp)(word-separator)(newwindow), FYI. This part is typically hidden either CodeMirror or CodeEditor is enabled.

Diskdance updated the task description. (Show Details)

Okay, got it! Thanks. I'll get this fixed.

Change #1215221 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CodeMirror@master] codemirror.wikieditor.less: hide Core's edit help link

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

MusikAnimal changed the task status from Open to In Progress.Dec 4 2025, 6:17 PM
MusikAnimal claimed this task.
MusikAnimal moved this task from Improvement to Bugs on the MediaWiki-extensions-CodeMirror board.

Change #1215221 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] codemirror.wikieditor.less: hide Core's edit help link

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

Bhsd moved this task from Bugs to Done on the MediaWiki-extensions-CodeMirror board.