470
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
var poemBtn = function () { | var poemBtn = function () { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
'section': 'main', | 'section': 'main', | ||
Line 15: | Line 13: | ||
pre: "<poem>\n", | pre: "<poem>\n", | ||
post: "\n</poem>" | post: "\n</poem>" | ||
} | |||
} | |||
}, | |||
'Poem2': { | |||
label: 'Poem2', | |||
type: 'button', | |||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/be/Tomboy_logo.svg/22px-Tomboy_logo.svg.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "{{Poem2\n", | |||
post: "\n}}" | |||
} | } | ||
} | } |