4,348
edits
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
} | } | ||
} ); | } ); | ||
$( '#wpTextbox1' ).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 | |||
} | |||
} | |||
} | |||
} | |||
} ); | |||
}; | }; | ||