MediaWiki:Gadget-GadgetLoaderCenter.js: Difference between revisions

From Elwiki
(Created page with "mw.loader.using( 'ext.visualEditor.desktopArticleTarget.init', function () { // Register plugins to VE. will be loaded once the user opens VE mw.libs.ve.addPlugin( function () { return mw.loader.getScript( →‎URL to user script: ); } ); } );")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
mw.loader.using( 'ext.visualEditor.desktopArticleTarget.init', function () {
mw.libs.ve.addPlugin( 'ext.gadget.Center' );
// Register plugins to VE. will be loaded once the user opens VE
mw.libs.ve.addPlugin( function () {
return mw.loader.getScript( /* URL to user script */ );
} );
} );

Latest revision as of 20:54, 28 August 2022

mw.libs.ve.addPlugin( 'ext.gadget.Center' );