MediaWiki
Gadget-GadgetLoaderVEsandbox.js
From Dogcraft Wiki
(it won't work if I'm using the wrong gadget name, idiot) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
mw.libs.ve.addPlugin( 'ext.gadget.VEsandbox' ); | mw.libs.ve.addPlugin( 'ext.gadget.VEColnodeCE' ); | ||
mw.libs.ve.addPlugin( 'ext.gadget.VEColnodeDM' ); | |||
mw.libs.ve.addPlugin( function() { | |||
return mw.loader.using( [ 'ext.visualEditor.core', 'ext.gadget.VEColnodeCE', 'ext.gadget.VEColnodeDM' ] ).then( function() { | |||
return 'ext.gadget.VEsandbox'; | |||
} ); | |||
} ); | |||
console.log('loader loaded') |
Latest revision as of 22:55, 17 May 2022
mw.libs.ve.addPlugin( 'ext.gadget.VEColnodeCE' );
mw.libs.ve.addPlugin( 'ext.gadget.VEColnodeDM' );
mw.libs.ve.addPlugin( function() {
return mw.loader.using( [ 'ext.visualEditor.core', 'ext.gadget.VEColnodeCE', 'ext.gadget.VEColnodeDM' ] ).then( function() {
return 'ext.gadget.VEsandbox';
} );
} );
console.log('loader loaded')