User:Savski/monobook.css: Difference between revisions

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

Revision as of 15:15, 21 June 2012

$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
        'sections': {
                'emoticons': {
                        'type': 'toolbar', // Can also be 'booklet'
                        'label': 'Emoticons'
                        // or 'labelMsg': 'section-emoticons-label' for a localized label
                }
        }
} );