Page MenuHomePhabricator

CodeMirror in New Wikitext Editor is not available when creating new page
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:
Try to create a new article on Wikipedia while using the NWE.

What happens?
No syntax highlighting is visible and the option cannot be selected in the usual dropdown. When editing an existing page, the option is available.

What should have happened instead?
The syntax highlighting option should be available also upon page creation (as it has been until recently).

First reported on dewiki.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
MusikAnimal triaged this task as High priority.
MusikAnimal subscribed.

Sorry, I broke this :(

Fix incoming.

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

[mediawiki/extensions/CodeMirror@master] ext.CodeMirror.visualEditor: check language dir of html for new pages

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

I plan to have this ride the train the week of June 4, meaning the fix would come to German Wikipedia on June 6. If anyone feels the fix needs to go out as soon as possible, I can have it backported to all wikis on Monday, June 3.

Change #1037662 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] ext.CodeMirror.visualEditor: check language dir of html for new pages

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

dom_walden subscribed.

I can confirm I can enable syntax highlighting on a new page on testwiki.

Test environment: https://test.wikipedia.org CodeMirror 5.0.0 (293a157) 03:48, 31 May 2024.

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