无编辑摘要
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
| 第40行: | 第40行: | ||
'group': 'format', | 'group': 'format', | ||
'tools': { | 'tools': { | ||
' | 'justify-left': { | ||
label: ' | label: ' 左对齐', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/ | icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/7f/OOjs_UI_icon_alignLeft.svg/24px-OOjs_UI_icon_alignLeft.svg.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "<div style=\"text-align: left;\">", | ||
post: "</div>" | |||
post: " | |||
} | } | ||
} | } | ||
}, | }, | ||
' | 'justify-center': { | ||
label: ' | label: ' 居中', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/ | icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/OOjs_UI_icon_alignCenter.svg/24px-OOjs_UI_icon_alignCenter.svg.png', | ||
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/thumb/ | icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/13/OOjs_UI_icon_alignRight.svg/24px-OOjs_UI_icon_alignRight.svg.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: "<div style=\"text-align: right;\">", | ||
post: "</ | post: "</div>" | ||
} | } | ||
} | } | ||
}, | }, | ||
' | |||
label: ' | 'bolditalic': { | ||
label: ' 粗斜体', | |||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/ | icon: '//upload.wikimedia.org/wikipedia/commons/b/be/Toolbaricon_bolditalic_A.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "'''''", | ||
post: " | periMsg: '粗斜体文字', | ||
post: "'''''" | |||
} | } | ||
} | } | ||
}, | }, | ||
' | 'strikethrough': { | ||
label: ' | label: ' 删除线', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/ | icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/72/VisualEditor_-_Icon_-_Strikethrough-s.svg/24px-VisualEditor_-_Icon_-_Strikethrough-s.svg.png', | ||
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/thumb/ | icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a9/VisualEditor_-_Icon_-_Underline-u.svg/24px-VisualEditor_-_Icon_-_Underline-u.svg.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: "<u>", | ||
post: "</ | post: "</u>" | ||
} | } | ||
} | } | ||
}, | }, | ||
' | 'quote': { | ||
label: ' | label: ' 块引用', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/ | icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d8/VisualEditor_-_Icon_-_Block-quote.svg/24px-VisualEditor_-_Icon_-_Block-quote.svg.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: "<blockquote>", | ||
post: "</ | post: "</blockquote>" | ||
} | } | ||
} | } | ||