Diferencia entre revisiones de «Usuario:King of Herdaz/common.js»

m
test
m (adding {{anchor}} to dropdown)
m (test)
// Adding category button to the "main" section
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'maintest',
group: 'inserttesting',
tools: {
"category": {
// Adding image template button to the "main" section
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'maintest',
group: 'inserttesting',
tools: {
"image": {
//Add new references dropdown to the "advanced" section
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advancedtest',
groups: {
list: {
options: {
pre: '{' + '{merge|',
post: '}}'
}
}
},
'anchor': {
label: '{' + '{anchor|}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{anchor|',
post: '}}'
}
}
} );
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'test': {
'type': 'toolbar',
'label': 'Test'
}
}
} );
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Test',
'groups': {
'testing': {
'label': 'Testing'
}
}
} );
 
 
};
 
8718

ediciones