Skip to content

Commit

Permalink
change used js hook in attempt to better time loading of codemirror
Browse files Browse the repository at this point in the history
  • Loading branch information
FO-nTTaX committed Feb 21, 2024
1 parent aaf4c49 commit cf7b84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/scripts/codemirror.js
Expand Up @@ -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
Expand Down

0 comments on commit cf7b84f

Please sign in to comment.