MediaWiki:Gadget-Edittools-vector.js:修订间差异
跳到导航
跳到搜索
无编辑摘要
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
第36行: | 第36行: | ||
} ); | } ); | ||
'strikethrough': { | |||
label: ' 删除线', | |||
' | |||
label: ' | |||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/7/ | icon: '//upload.wikimedia.org/wikipedia/commons/7/72/VisualEditor_-_Icon_-_Strikethrough-s.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: "<s>", | ||
post: "</ | post: "</s>" | ||
} | } | ||
} | } | ||
}, | }, | ||
' | 'underline': { | ||
label: ' | label: ' 下划线', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/ | icon: '//upload.wikimedia.org/wikipedia/commons/a/a9/VisualEditor_-_Icon_-_Underline-u.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: "<u>", | ||
post: "</ | post: "</u>" | ||
} | } | ||
} | } | ||
}, | }, | ||
' | 'source': { | ||
label: ' | label: ' 模板引用', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/ | icon: '//upload.wikimedia.org/wikipedia/commons/2/2c/VisualEditor_-_Icon_-_Source.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{", | ||
post: | post: '}}' | ||
} | } | ||
} | } | ||
}, | }, | ||
this.wikiEditor('addToToolbar', { | |||
'section': 'advanced', | |||
' | 'group': 'format', | ||
label: ' | 'tools': { | ||
'justify-left': { | |||
label: ' 左对齐', | |||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/7/ | icon: '//upload.wikimedia.org/wikipedia/commons/7/7f/OOjs_UI_icon_alignLeft.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: "<div style=\"text-align: left;\">", | ||
post: "</ | post: "</div>" | ||
} | } | ||
} | } | ||
}, | }, | ||
' | 'justify-center': { | ||
label: ' | label: ' 居中', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/ | icon: '//upload.wikimedia.org/wikipedia/commons/b/ba/OOjs_UI_icon_alignCenter.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: "<div style=\"text-align: center;\">", | ||
post: "</ | post: "</div>" | ||
} | } | ||
} | } | ||
}, | }, | ||
' | 'justify-right': { | ||
label: ' | label: ' 右对齐', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/ | icon: '//upload.wikimedia.org/wikipedia/commons/1/13/OOjs_UI_icon_alignRight.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "<div style=\"text-align: right;\">", | ||
post: | post: "</div>" | ||
} | } | ||
} | } |