mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
Fix WikiEditor dependencies
Change-Id: Ibaa17e581ada5fcb202217797e70f9fed2510ec4
This commit is contained in:
parent
e3f0df1cfc
commit
12d420b7e9
|
@ -447,8 +447,8 @@
|
|||
// Check if the user is using the enhanced editing toolbar (supplied by the
|
||||
// WikiEditor extension) or the default editing toolbar (supplied by core).
|
||||
if ( wikiEditorToolbarEnabled ) {
|
||||
// They are using the enhanced editing toolbar.
|
||||
mw.loader.using( 'ext.wikiEditor.toolbar', function () {
|
||||
// They are using WikiEditor
|
||||
mw.loader.using( 'ext.wikiEditor', function () {
|
||||
// Add CodeMirror button to the enhanced editing toolbar.
|
||||
$( addCodeMirrorToWikiEditor );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue