Difference between revisions of "User:Taln Fan/common.js"

no edit summary
(Created page with "//customize toolbar var customizeToolbar = function() { →‎Your code goes here: // Adding an art infobox button to the "main" section $('#wpTextbox1' ).wikiEditor( 'a...")
 
var customizeToolbar = function() {
/* Your code goes here */
 
// Adding link button to the "main" section
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'insert',
tools: {
"link": {
label: 'Link',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/9/97/Button_int_link.png',
action: {
type: 'encapsulate',
options: {
pre: "[[",
post: "]]"
}
}
}
}
});
 
// Adding an art infobox button to the "main" section
2,935

edits