diff --git a/composer.json b/composer.json index 139f1ce..1e529f5 100644 --- a/composer.json +++ b/composer.json @@ -21,5 +21,10 @@ "composer sqllint" ], "fix": "phpcbf" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } diff --git a/resources/scripts/codemirror.js b/resources/scripts/codemirror.js index 1da73e1..a0190fc 100644 --- a/resources/scripts/codemirror.js +++ b/resources/scripts/codemirror.js @@ -423,7 +423,7 @@ if ( !String.prototype.includes ) { codeMirror = codeMirrorDesktop; } if ( codeMirror ) { - mw.hook( 'wikipage.editform' ).add( function() { + mw.hook( 'wikiEditor.toolbarReady' ).add( function() { enableCodeMirror(); // define JQuery hook for searching and replacing text using