|
|
@@ -95,27 +95,41 @@ export default {
|
|
|
mode: 'default'
|
|
|
})
|
|
|
|
|
|
+ // 工具栏:wangEditor 5 全部内置菜单(对齐老 Quill 的完整功能集)
|
|
|
const toolbarConfig = {
|
|
|
toolbarKeys: [
|
|
|
'undo', 'redo',
|
|
|
'|',
|
|
|
'headerSelect',
|
|
|
'bold', 'italic', 'underline', 'strikeThrough',
|
|
|
+ 'code', 'sub', 'sup',
|
|
|
'|',
|
|
|
'color', 'bgColor',
|
|
|
'|',
|
|
|
'fontSize', 'fontFamily',
|
|
|
'lineHeight',
|
|
|
'|',
|
|
|
- 'justifyLeft', 'justifyCenter', 'justifyRight',
|
|
|
+ 'justifyLeft', 'justifyCenter', 'justifyRight', 'justifyJustify',
|
|
|
'|',
|
|
|
'bulletedList', 'numberedList',
|
|
|
- 'indent',
|
|
|
+ 'indent', 'delIndent',
|
|
|
'|',
|
|
|
- 'insertLink', 'uploadImage',
|
|
|
- 'blockquote', 'codeBlock',
|
|
|
+ 'insertImage', 'uploadImage', 'deleteImage', 'editImage',
|
|
|
'|',
|
|
|
- 'divider', 'splitLine'
|
|
|
+ 'insertTable', 'tableFullWidth', 'deleteTable',
|
|
|
+ 'insertTableRow', 'deleteTableRow',
|
|
|
+ 'insertTableCol', 'deleteTableCol',
|
|
|
+ 'tableHeader', 'mergeCells',
|
|
|
+ '|',
|
|
|
+ 'insertLink', 'editLink', 'unLink',
|
|
|
+ '|',
|
|
|
+ 'blockquote', 'codeBlock', 'todo',
|
|
|
+ '|',
|
|
|
+ 'divider', 'splitLine', 'clearStyle',
|
|
|
+ '|',
|
|
|
+ 'emotion',
|
|
|
+ '|',
|
|
|
+ 'fullScreen', 'preview'
|
|
|
]
|
|
|
}
|
|
|
|