559
edits
JoshuaJSlone (talk | contribs) No edit summary |
JoshuaJSlone (talk | contribs) No edit summary |
||
Line 48: | Line 48: | ||
$textarea.wikiEditor( 'addToToolbar', { | $textarea.wikiEditor( 'addToToolbar', { | ||
sections: { | sections: { | ||
emoticons: { | |||
type: 'toolbar', // Can also be 'booklet', | type: 'toolbar', // Can also be 'booklet', | ||
label: ' | label: 'Emoticons' | ||
// or labelMsg: 'section- | // or labelMsg: 'section-emoticons-label' for a localized label | ||
} | |||
} | |||
} ); | |||
$textarea.wikiEditor( 'addToToolbar', { | |||
section: 'emoticons', | |||
groups: { | |||
faces: { | |||
label: 'Faces' // or use labelMsg for a localized label, see above | |||
} | |||
} | |||
} ); | |||
$textarea.wikiEditor( 'addToToolbar', { | |||
section: 'emoticons', | |||
group: 'faces', | |||
tools: { | |||
smile: { | |||
label: 'Smile!', // or use labelMsg for a localized label, see above | |||
type: 'button', | |||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: ":)" // text to be inserted | |||
} | |||
} | |||
} | } | ||
} | } |