User:Savski/monobook.css: Difference between revisions

From Hattrick
Jump to navigationJump to search
Savski (talk | contribs)
No edit summary
Savski (talk | contribs)
No edit summary
 
Line 1: Line 1:
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
jQuery(document).ready(function ($) {
        'sections': {
        $('#wpTextbox1').wikiEditor('addToToolbar', {
                 'emoticons': {
                section: 'advanced',
                         'type': 'toolbar', // Can also be 'booklet'
                 group: 'format',
                        'label': 'Emoticons'
                tools: {
                        // or 'labelMsg': 'section-emoticons-label' for a localized label
                         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: " -->"
                                        }
                                }
                        }
                }
        });
});