Page MenuHomePhabricator

CodeMirrorContentModels extension attribute is ignored
Closed, ResolvedPublicBUG REPORT

Description

For example, proofread-page should be supported per https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/ProofreadPage/+/ea103112c40a567306361c33c135aba8c26c0750/extension.json#462

It looks like I forgot about the extension attribute in r1107061 :(

Event Timeline

MusikAnimal changed the task status from Open to In Progress.May 8 2025, 9:53 PM
MusikAnimal claimed this task.
MusikAnimal triaged this task as High priority.
MusikAnimal moved this task from Backlog to Bugs on the MediaWiki-extensions-CodeMirror board.

There are no more backport windows this week, so we may not get the fix in until Monday.

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

[mediawiki/extensions/CodeMirror@master] Remove ContentModels ext attribute, make config flag associative

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

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

[mediawiki/extensions/ProofreadPage@master] Use CodeMirrorGetModeHook instead of extension attribute

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

Change #1144669 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] Remove ContentModels ext attribute, make config flag associative

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

Change #1144673 merged by jenkins-bot:

[mediawiki/extensions/ProofreadPage@master] Use CodeMirrorGetModeHook instead of extension attribute

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

Before closing this ticket, I find a few more issues related to proofreading with CM6 enabled:

  1. The header and the footer disappear when previewing.
  2. The CSS looks broken when line wrapping is disabled.
  3. Code folding does not work.
Bhsd moved this task from Bugs to Done on the MediaWiki-extensions-CodeMirror board.

Close this ticket and continue the discussion in T380262.