User:Savski/monobook.css: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | jQuery(document).ready(function ($) { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
' | section: 'advanced', | ||
'type | group: 'format', | ||
tools: { | |||
buttonId: { | |||
label: 'Comment visible only for editors', | |||
type: 'button', | |||
icon: '//upload.wikimedia.org/wikipedia/commons/f/f9/Toolbaricon_regular_S_stroke.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "<!-- ", | |||
peri: "Insert comment here", | |||
post: " -->" | |||
} | |||
} | |||
} | |||
} | } | ||
} | }); | ||
} ); | }); | ||
Latest revision as of 17:35, 21 June 2012
jQuery(document).ready(function ($) {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Comment visible only for editors',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/f/f9/Toolbaricon_regular_S_stroke.png',
action: {
type: 'encapsulate',
options: {
pre: "<!-- ",
peri: "Insert comment here",
post: " -->"
}
}
}
}
});
});