MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Amwelladmin (talk | contribs) No edit summary |
Amwelladmin (talk | contribs) (Replaced content with "$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'emoticons', 'group': 'faces', 'tools': { 'smile': { label: 'Smile!', // or use labelMsg for a localize...") |
||
Line 1: | Line 1: | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | 'section': 'emoticons', | ||
section: ' | 'group': 'faces', | ||
group: ' | 'tools': { | ||
tools: { | 'smile': { | ||
label: 'Smile!', // or use labelMsg for a localized label, see above | |||
label: ' | |||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/ | icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: ":)" // text to be inserted | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||