VE: Add explicit dependency on targetLoader

Change-Id: I3d67837b462e0b79e124eff158bd7f88b5aaf63e
This commit is contained in:
Ed Sanders 2020-06-30 16:21:33 +01:00
parent 2518861bc1
commit 89f52f6fbb

View file

@ -1,4 +1,4 @@
( function () { mw.loader.using( 'ext.visualEditor.targetLoader' ).then( function () {
mw.libs.ve.targetLoader.addPlugin( function () { mw.libs.ve.targetLoader.addPlugin( function () {
var index, var index,
target = ve.init.mw.DesktopArticleTarget; target = ve.init.mw.DesktopArticleTarget;
@ -8,4 +8,4 @@
target.static.actionGroups[ 1 ].include.splice( index, 0, 'codeMirror' ); target.static.actionGroups[ 1 ].include.splice( index, 0, 'codeMirror' );
} }
} ); } );
}() ); } );