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
Line 2: Line 2:
// Register plugins to VE. will be loaded once the user opens VE
// Register plugins to VE. will be loaded once the user opens VE
mw.libs.ve.addPlugin( function () {  
mw.libs.ve.addPlugin( function () {  
return mw.loader.getScript( /* URL to user script */ );  
return mw.loader.getScript( '/w/MediaWiki:Gadget-Center.js' );  
} );
} );
} );
} );

Revision as of 20:54, 28 August 2022

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( '/w/MediaWiki:Gadget-Center.js' ); 
	} );
} );