Uživatel:Admin/common.js: Porovnání verzí
Řádek 1: | Řádek 1: | ||
− | mw.loader. | + | mw.loader.using( 'ext.visualEditor.viewPageTarget.init', function(){ |
+ | // Register plugins to VE. will be loaded once the user opens the VE | ||
+ | mw.libs.ve.addPlugin( function() { | ||
+ | return $.getScript('https://en.wikipedia.org/w/index.php?title=User:ערן/refToolbarVe.js&action=raw&ctype=text/javascript'); | ||
+ | } ); | ||
+ | }); |
Verze z 17. 8. 2015, 15:22
mw.loader.using( 'ext.visualEditor.viewPageTarget.init', function(){
// Register plugins to VE. will be loaded once the user opens the VE
mw.libs.ve.addPlugin( function() {
return $.getScript('https://en.wikipedia.org/w/index.php?title=User:ערן/refToolbarVe.js&action=raw&ctype=text/javascript');
} );
});