MediaWiki:Gadget-Emoji.js:修订间差异
来自Limbo Wiki
小无编辑摘要 |
小无编辑摘要 |
||
第5行: | 第5行: | ||
tools: { | tools: { | ||
buttonId: { | buttonId: { | ||
labelMsg: ' | labelMsg: 'gadget-emoji-tle', | ||
type: 'button', | type: 'button', | ||
action: { | action: { |
2022年4月3日 (日) 15:02的版本
$(function() {mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { $textarea.wikiEditor( 'addToToolbar',{ section: 'advanced', group: 'format', tools: { buttonId: { labelMsg: 'gadget-emoji-tle', type: 'button', action: { type: 'encapsulate', options: { pre: '<!-- ', periMsg: 'emoji-txt', post: ' -->' } } } } }); });});