This page instructs you to install Extension:CodeMirror inside MediaWiki-Docker.

Follow the Quickstart instructions at MediaWiki-Docker page. Once MediaWiki is running and available at http://localhost:8080 then install VisualEditor. Finally, continue with instructions on this page.

All commands should be run in the directory where you installed MediaWiki. All mentioned files are also located there.

Clone the repository and its dependenciesEdit

git clone "" skins/Vector
git clone "" extensions/CodeMirror
git clone "" extensions/WikiEditor

Modify LocalSettings.phpEdit

If not already there, add this to the end of LocalSettings.php.

wfLoadSkin( 'Vector' );
wfLoadExtension( 'CodeMirror' );
wfLoadExtension( 'WikiEditor' );

Run maintenance scriptsEdit

docker compose exec mediawiki php maintenance/update.php