8718
ediciones
(Created page with "var customizeToolbar = function() { →Your code goes here: // Add category button $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'i...") |
m (trying to add an image template button) |
||
pre: "[[Category: ",
post: "]]"
}
}
}
}
});
// Add image template button
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'insert',
tools: {
"category": {
label: 'Image',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/2/2d/Button_clipboard_category.png',
action: {
type: 'encapsulate',
options: {
pre: "{{image|",
post: "|side=|width=|caption}}"
}
}
|
ediciones