User:Micki/extratoolbarbuttons.js: Difference between revisions
Content deleted Content added
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/*<nowiki><pre>*/ |
/*<nowiki><pre>*/ |
||
var customizeToolbar = function () { |
|||
//EXTRA TOOLBAR BUTTONS |
//EXTRA TOOLBAR BUTTONS |
||
if (typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined') { |
|||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
⚫ | |||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 21: | Line 20: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 39: | Line 38: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 57: | Line 56: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 75: | Line 74: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 93: | Line 92: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 111: | Line 110: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 128: | Line 127: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 146: | Line 145: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 164: | Line 163: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 181: | Line 180: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 198: | Line 197: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 216: | Line 215: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'format', |
'group': 'format', |
||
Line 234: | Line 233: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'main', |
'section': 'main', |
||
'group': 'insert', |
'group': 'insert', |
||
Line 251: | Line 250: | ||
} |
} |
||
}); |
}); |
||
//EMOTICONS |
|||
⚫ | |||
⚫ | |||
//EMOTICONS |
|||
if (typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined') { |
|||
⚫ | |||
$j('#wpTextbox1').wikiEditor('addToToolbar', { |
|||
'sections': { |
'sections': { |
||
'emoticons': { |
'emoticons': { |
||
Line 265: | Line 259: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'groups': { |
'groups': { |
||
Line 273: | Line 267: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 290: | Line 284: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 307: | Line 301: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 324: | Line 318: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 341: | Line 335: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 358: | Line 352: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 375: | Line 369: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 392: | Line 386: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 409: | Line 403: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 426: | Line 420: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 443: | Line 437: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 460: | Line 454: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 477: | Line 471: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 494: | Line 488: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 511: | Line 505: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 528: | Line 522: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 545: | Line 539: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 562: | Line 556: | ||
} |
} |
||
}); |
}); |
||
$ |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
'section': 'emoticons', |
'section': 'emoticons', |
||
'group': 'emoticons', |
'group': 'emoticons', |
||
Line 579: | Line 573: | ||
} |
} |
||
}); |
}); |
||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
$(function () { |
|||
if (typeof $.fn.wikiEditor != 'undefined') { |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
||
'section': 'help', |
'section': 'help', |
||
}); |
}); |
||
⚫ | |||
}); |
|||
$(function () { |
|||
if (typeof $.fn.wikiEditor != 'undefined') { |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
||
'section': 'main', |
'section': 'main', |
||
Line 596: | Line 582: | ||
'tool': 'file' |
'tool': 'file' |
||
}); |
}); |
||
} |
|||
}); |
|||
$(function () { |
|||
if (typeof $.fn.wikiEditor != 'undefined') { |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
||
'section': 'main', |
'section': 'main', |
||
Line 605: | Line 587: | ||
'tool': 'signature' |
'tool': 'signature' |
||
}); |
}); |
||
} |
|||
}); |
|||
$(function () { |
|||
if (typeof $.fn.wikiEditor != 'undefined') { |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
||
'section': 'main', |
'section': 'main', |
||
Line 614: | Line 592: | ||
'tool': 'signature-ns0' |
'tool': 'signature-ns0' |
||
}); |
}); |
||
} |
|||
}); |
|||
$(function () { |
|||
if (typeof $.fn.wikiEditor != 'undefined') { |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
'group': 'heading', |
'group': 'heading', |
||
}); |
}); |
||
} |
|||
}); |
|||
$(function () { |
|||
if (typeof $.fn.wikiEditor != 'undefined') { |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
Line 631: | Line 601: | ||
'tool': 'ulist' |
'tool': 'ulist' |
||
}); |
}); |
||
} |
|||
}); |
|||
$(function () { |
|||
if (typeof $.fn.wikiEditor != 'undefined') { |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
Line 640: | Line 606: | ||
'tool': 'olist' |
'tool': 'olist' |
||
}); |
}); |
||
} |
|||
}); |
|||
$(function () { |
|||
if (typeof $.fn.wikiEditor != 'undefined') { |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
||
'section': 'advanced', |
'section': 'advanced', |
||
Line 649: | Line 611: | ||
'tool': 'indent' |
'tool': 'indent' |
||
}); |
}); |
||
} |
}; |
||
if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) !== -1) { |
|||
}); |
|||
mw.loader.using('user.options', function () { |
|||
if (mw.user.options.get('usebetatoolbar')) { |
|||
mw.loader.using('ext.wikiEditor.toolbar', function () { |
|||
⚫ | |||
}); |
|||
⚫ | |||
⚫ | |||
⚫ | |||
/*</nowiki></pre>*/ |
/*</nowiki></pre>*/ |
Revision as of 20:52, 23 April 2012
/*<nowiki><pre>*/
var customizeToolbar = function () {
//EXTRA TOOLBAR BUTTONS
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Blockquote': {
label: 'Navodnici',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/2/2f/Toolbaricon_quote_1.png',
action: {
type: 'encapsulate',
options: {
pre: "„",
post: "“"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Strikethrough': {
label: 'Precrtan tekst',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/45/Gnome-format-text-strikethrough.svg/25px-Gnome-format-text-strikethrough.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "<s>",
post: "</s>"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Template': {
label: 'Šablon',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/d/dd/Vector_toolbar_template_button.png',
action: {
type: 'encapsulate',
options: {
pre: "{{",
post: "}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'External link': {
label: 'Spoljašnja veza',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/49/Gnome-go-previous.svg/25px-Gnome-go-previous.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[",
post: "]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Internal link': {
label: 'Unutrašnja veza',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/9/94/Gnome-go-next.svg/25px-Gnome-go-next.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[",
post: "]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Link': {
label: 'Veza',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/2/27/Gnome-go-last.svg/25px-Gnome-go-last.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[|",
post: "]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Vertical line': {
label: 'Uspravna crta',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/46/Gnome-go-first.svg/25px-Gnome-go-first.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "|",
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Category': {
label: 'Kategorija',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Gnome-go-bottom.svg/25px-Gnome-go-bottom.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[Category:",
post: "]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Advanced image': {
label: 'Slika 250px',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Image-x-generic.svg/25px-Image-x-generic.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:",
post: "|thumb|right|250px|Opis]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Smile': {
label: 'Smeje se',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-smile.svg/25px-Face-smile.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-smile.svg|20px]]",
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Winking': {
label: 'Namiguje',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Face-wink.svg/25px-Face-wink.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-wink.svg|20px]]",
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Done': {
label: 'Urađeno',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Dialog-apply.svg/25px-Dialog-apply.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{done}} ",
post: " ~~~~"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Not done': {
label: 'Nije urađeno',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/75/Gnome-colors-window-close.svg/25px-Gnome-colors-window-close.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{not done}} ",
post: " ~~~~"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'main',
'group': 'insert',
'tools': {
'Signature': {
label: 'Potpis',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/7/79/Insert-signature.png',
action: {
type: 'encapsulate',
options: {
pre: " ~~~~",
}
}
}
}
});
//EMOTICONS
$('#wpTextbox1').wikiEditor('addToToolbar', {
'sections': {
'emoticons': {
'type': 'toolbar',
'label': 'Emoticons'
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'groups': {
'emoticons': {
'label': 'Emoticons'
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'smile': {
label: 'Smile',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-smile.svg/25px-Face-smile.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-smile.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'frown': {
label: 'Frown',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Face-sad.svg/25px-Face-sad.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-sad.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'plain': {
label: 'Plain',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Face-plain.svg/25px-Face-plain.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-plain.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'wink': {
label: 'Wink',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Face-wink.svg/25px-Face-wink.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-wink.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'tongue': {
label: 'Tongue',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Face-tongue.svg/25px-Face-tongue.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-tongue.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'surprised': {
label: 'Surprised',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-surprise.svg/25px-Face-surprise.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-surprise.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'confused': {
label: 'Confused',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Face-confused.svg/25px-Face-confused.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-confused.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'grin': {
label: 'Grin',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-grin.svg/25px-Face-grin.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'braces': {
label: 'Braces grin',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Face-grin-braces.svg/25px-Face-grin-braces.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin-braces.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'crying': {
label: 'Crying',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Face-crying.svg/25px-Face-crying.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-crying.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'blush': {
label: 'Blush',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Face-blush.svg/25px-Face-blush.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-blush.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'laughing': {
label: 'Laughing',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Face-smile-big.svg/25px-Face-smile-big.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-smile-big.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'kiss': {
label: 'Kiss',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a8/Face-kiss.svg/25px-Face-kiss.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-kiss.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'glasses': {
label: 'Glasses',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Face-glasses.svg/25px-Face-glasses.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-glasses.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'nerd': {
label: 'Nerd',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Face-grin_expert.svg/25px-Face-grin_expert.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin_expert.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'angel': {
label: 'Angel',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Face-angel.svg/25px-Face-angel.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-angel.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'devil': {
label: 'Devil',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/70/Face-devil-grin.svg/25px-Face-devil-grin.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-devil-grin.svg|20px]]"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'monkey': {
label: 'Monkey',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-monkey.svg/25px-Face-monkey.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-monkey.svg|20px]]"
}
}
}
}
});
//REMOVING THINGS
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'help',
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'main',
'group': 'insert',
'tool': 'file'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'main',
'group': 'insert',
'tool': 'signature'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'main',
'group': 'insert',
'tool': 'signature-ns0'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'advanced',
'group': 'heading',
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'ulist'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'olist'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'indent'
});
};
if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) !== -1) {
mw.loader.using('user.options', function () {
if (mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor.toolbar', function () {
$(document).ready(customizeToolbar);
});
}
});
}
/*</nowiki></pre>*/