Gebruiker:Romaine/vector.js: verschil tussen versies
Verwijderde inhoud Toegevoegde inhoud
Geen bewerkingssamenvatting |
Geen bewerkingssamenvatting |
||
Regel 7:
});
mw.loader.using('mediawiki.action.edit', function() {▼
"imageFile": "//upload.wikimedia.org/wikipedia/commons/6/65/Button_wikificare.png",▼
var customizeToolbar = function () {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/6/65/Button_wikificare.png",▼
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'main',
group: 'insert',
tools: {
"Ro-welkomgebr": {
type: 'button',
▲
action: {
type: 'encapsulate',
options: {
post: ''
}
}
},
"Ro-uitgevoerdafbeelding": {
type: 'button',
▲
action: {
type: 'encapsulate',
options: {
post: '\'\'\''
}
}
}
}
});
};
▲// Uitgevoerd
▲ "speedTip": "Uitgevoerd",
▲ "tagOpen": "\[\[Bestand:Crystal Clear action apply.png\|17px\|Uitgevoerd\]\] \'\'\'",
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */
▲//Welkom nieuwe gebruiker
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
// This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]])
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
$.when(
▲ "tagOpen": "{\{welkom}\}\nWelkom\! - \~\~\~\~",
mw.loader.using( 'ext.wikiEditor' ), $.ready
).then( customizeToolbar );
} );
}
|