MediaWiki:Gadget-Emoji.js:修订间差异

来自Limbo Wiki
(新条目)
 
无编辑摘要
第1行: 第1行:
$(function() {mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
$(function() {mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
$textarea.wikiEditor( 'addToToolbar',{
$textarea.wikiEditor( 'addToToolbar',{
/* Toolbar configuration goes here. */
section: 'advanced',
});
        group: 'format',
        tools: {
            buttonId: {
                label: 'Comment visible only for editors',
                type: 'button',
                action: {
                    type: 'encapsulate',
                    options: {
                        pre: '<!-- ',
                        peri: 'Insert comment here',
                        post: ' -->'
                    }
                }
            }
        }
    });
});});
});});

2022年3月28日 (一) 14:27的版本

$(function() {mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
	$textarea.wikiEditor( 'addToToolbar',{
		section: 'advanced',
        group: 'format',
        tools: {
            buttonId: {
                label: 'Comment visible only for editors',
                type: 'button',
                action: {
                    type: 'encapsulate',
                    options: {
                        pre: '<!-- ',
                        peri: 'Insert comment here',
                        post: ' -->'
                    }
                }
            }
        }
    });
});});