mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-14 09:44:48 +00:00
Merge "Fix WikiEditor dependencies"
This commit is contained in:
commit
f3f82ae47a
|
@ -453,8 +453,8 @@
|
||||||
// Check if the user is using the enhanced editing toolbar (supplied by the
|
// Check if the user is using the enhanced editing toolbar (supplied by the
|
||||||
// WikiEditor extension) or the default editing toolbar (supplied by core).
|
// WikiEditor extension) or the default editing toolbar (supplied by core).
|
||||||
if ( wikiEditorToolbarEnabled ) {
|
if ( wikiEditorToolbarEnabled ) {
|
||||||
// They are using the enhanced editing toolbar.
|
// They are using WikiEditor
|
||||||
mw.loader.using( 'ext.wikiEditor.toolbar', function () {
|
mw.loader.using( 'ext.wikiEditor', function () {
|
||||||
// Add CodeMirror button to the enhanced editing toolbar.
|
// Add CodeMirror button to the enhanced editing toolbar.
|
||||||
$( addCodeMirrorToWikiEditor );
|
$( addCodeMirrorToWikiEditor );
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue