MediaWiki:Gadget-Emoji.js:修订间差异
来自Limbo Wiki
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
$(function() {mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { | $(function($,mw){ | ||
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { | |||
$textarea.wikiEditor( 'addToToolbar',{ | $textarea.wikiEditor( 'addToToolbar',{ | ||
section: 'advanced', | section: 'advanced', | ||
第19行: | 第20行: | ||
} | } | ||
}); | }); | ||
});}); | }); | ||
}(jQuery,mediaWiki)); |
2022年4月4日 (一) 06:59的版本
$(function($,mw){ mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { $textarea.wikiEditor( 'addToToolbar',{ section: 'advanced', group: 'insert', tools: { buttonId: { label: 'Emoji', type: 'button', oouiIcon: 'emoji',//OpenMoji action: { type: 'encapsulate', options: { pre: '<!-- ', peri: '注释', post: ' -->' } } } } }); }); }(jQuery,mediaWiki));