MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 238: Line 238:
options: {
options: {
pre: "—",
pre: "—",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'FullAnat',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/3/3c/Vector_toolbar_bold_F_button.png',
action: {
type: 'encapsulate',
options: {
pre: "{{fullanat|AGMT|CLAUSE|EDITION}}",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'FullAnat2',
type: 'button',
icon: 'http://amwellclear.co.uk/w/images/2/22/Vector_toolbar_bold_F2_button.png',
action: {
type: 'encapsulate',
options: {
pre: "{{fullanat|AGMT|CLAUSE|EDITION|CLAUSE|EDITION}}",
post: ""
post: ""
}
}
Line 261: Line 297:
// Add the customizations to LiquidThreads' edit toolbar, if available
// Add the customizations to LiquidThreads' edit toolbar, if available
mw.hook( 'ext.lqt.textareaCreated' ).add( customizeToolbar );
mw.hook( 'ext.lqt.textareaCreated' ).add( customizeToolbar );


/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */