MediaWiki:Gadget-Emoji.js:修订间差异
来自Limbo Wiki
小无编辑摘要 |
小无编辑摘要 |
||
第7行: | 第7行: | ||
label: 'Emoji', | label: 'Emoji', | ||
type: 'button', | type: 'button', | ||
oouiIcon: ' | oouiIcon: 'markup',//Code Editor | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', |
2022年4月3日 (日) 15:32的版本
$(function() {mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { $textarea.wikiEditor( 'addToToolbar',{ section: 'main', group: 'insert', tools: { buttonId: { label: 'Emoji', type: 'button', oouiIcon: 'markup',//Code Editor action: { type: 'encapsulate', options: { pre: '<!-- ', peri: '注释', post: ' -->' } } } } }); });});