Uživatel:Admin/common.js: Porovnání verzí
Řádek 16: | Řádek 16: | ||
mw.libs.ve.addPlugin( function() { | mw.libs.ve.addPlugin( function() { | ||
alert('Test'); | alert('Test'); | ||
− | return $.getScript('https:// | + | return $.getScript('https://albina.ff.cuni.cz/index.php?title=User:Admin/veReplace.js&action=raw&ctype=text/javascript'); |
} ); | } ); | ||
}); | }); |
Verze z 17. 8. 2015, 15:11
//translate the following:
mw.messages.set({
've-SearchAndReplaceDialog-title': 'Search and replace',
've-SearchAndReplaceDialog-from-label': 'From:',
've-SearchAndReplaceDialog-to-label': 'To:',
've-SearchAndReplaceDialog-from-placeholder': 'From text',
've-SearchAndReplaceDialog-to-placeholder': 'To text',
've-SearchAndReplaceDialog-replaceAll': 'Repalce all',
've-SearchAndReplaceDialog-replace': 'Repalce',
've-SearchAndReplaceDialog-matchcase': 'Match case',
've-SearchAndReplaceDialog-replace-complete': 'Found and replaced $1 occurrences',
've-ReplaceTool-ToolbarButton': 'Replace'
});
//end of translations
mw.loader.using( 'ext.visualEditor.viewPageTarget.init', function(){
mw.libs.ve.addPlugin( function() {
alert('Test');
return $.getScript('https://albina.ff.cuni.cz/index.php?title=User:Admin/veReplace.js&action=raw&ctype=text/javascript');
} );
});