撤销=海豚=(讨论)的版本112124
imported>=海豚= 无编辑摘要 |
imported>=海豚= |
||
(未显示同一用户的15个中间版本) | |||
第35行: | 第35行: | ||
} | } | ||
} ); | } ); | ||
this.wikiEditor('addToToolbar', { | this.wikiEditor('addToToolbar', { | ||
'section': 'advanced', | 'section': 'advanced', | ||
'group': 'format', | 'group': 'format', | ||
'tools': { | 'tools': { | ||
' | '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: ']]' | ||
} | } | ||
} | } | ||
}, | }, | ||
'justify-left': { | |||
' | label: ' 左对齐', | ||
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: "<center>", | ||
post: "</ | post: "</center>" | ||
} | } | ||
} | } | ||
}, | }, | ||
' | '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>" | ||
} | } | ||
} | } |