Merge "Remove wait for DOM ready before attach to hook 'wikiEditor.toolbarReady'"

This commit is contained in:
jenkins-bot 2024-04-10 13:05:49 +00:00 committed by Gerrit Code Review
commit f609267612

View file

@ -356,12 +356,10 @@ function init() {
} );
}
$( function () {
// Add CodeMirror button to the enhanced editing toolbar.
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
$textbox1 = $textarea;
addCodeMirrorToWikiEditor();
} );
// Add CodeMirror button to the enhanced editing toolbar.
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
$textbox1 = $textarea;
addCodeMirrorToWikiEditor();
} );
// Synchronize textarea with CodeMirror before leaving