mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 13:56:44 +00:00
Merge "Remove wait for DOM ready before attach to hook 'wikiEditor.toolbarReady'"
This commit is contained in:
commit
f609267612
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue