mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
894d2c33e9
This fixes a preexisting issue where we were loading CodeMirror on pages where it would never be used. We use the EditPage__showEditForm_initial hook so we don't need to check the action. This commit introduces the CodeMirrorContentModels extension attribute, used to limit where CodeMirror is loaded automatically. By default, this includes only CONTENT_MODEL_WIKITEXT ('wikitext'). This extension attribute serves as a stepping stone to CM being used on content types other than just wikitext. Bug: T359206 Change-Id: Ibefc028c5ef6275393202fe773c26162715e1bca |
||
---|---|---|
.. | ||
jest | ||
phpunit | ||
selenium |