MediaWiki:Gadget-EditAddButton.js:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| 第330行: | 第330行: | ||
peri: 'Insert comment here\n', | peri: 'Insert comment here\n', | ||
post: '</syntaxhighlight>|output2=<syntaxhighlight lang="bash">\n</syntaxhighlight>}}' | post: '</syntaxhighlight>|output2=<syntaxhighlight lang="bash">\n</syntaxhighlight>}}' | ||
} | |||
} | |||
}, | |||
code_tabs_tag: { | |||
label: 'code tabs for editors', | |||
type: 'button', | |||
icon: 'images/toolbar_img/codetab.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{codetab|tabs=<tabs><tab name="html"><syntaxhighlight lang="html5">\n', | |||
peri: 'Insert comment here', | |||
post: '</syntaxhighlight></tab><tab name="css"><syntaxhighlight lang="css">\n</syntaxhighlight></tab><tab name="js"><syntaxhighlight lang="javascript">\n</syntaxhighlight></tab></tabs>}}' | |||
} | |||
} | |||
}, | |||
code_pen_tag: { | |||
label: 'codepen iframe for editors', | |||
type: 'button', | |||
icon: 'images/toolbar_img/codepen.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{codepen|tabs=<tabs><tab name="html"><syntaxhighlight lang="html5">\n', | |||
peri: 'Insert comment here', | |||
post: '</syntaxhighlight></tab><tab name="css"><syntaxhighlight lang="css">\n</syntaxhighlight></tab><tab name="js"><syntaxhighlight lang="javascript">\n</syntaxhighlight></tab></tabs>|iframe=<html><iframe src="https://kangkk.com/" name="kangkk.com"></iframe></html>}}' | |||
} | } | ||
} | } | ||