Merge "Fix WikiEditor dependencies"

This commit is contained in:
jenkins-bot 2018-01-04 16:30:22 +00:00 committed by Gerrit Code Review
commit f3f82ae47a

View file

@ -453,8 +453,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 );
} );