From cf7b84f9bc95fe2f9529884dde3434fd19214d9a Mon Sep 17 00:00:00 2001 From: Alex Winkler Date: Wed, 21 Feb 2024 16:25:27 +0100 Subject: [PATCH] change used js hook in attempt to better time loading of codemirror --- resources/scripts/codemirror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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