|
|
@@ -95,43 +95,9 @@ 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', 'justifyJustify',
|
|
|
- '|',
|
|
|
- 'bulletedList', 'numberedList',
|
|
|
- 'indent', 'delIndent',
|
|
|
- '|',
|
|
|
- 'insertImage', 'uploadImage', 'deleteImage', 'editImage',
|
|
|
- '|',
|
|
|
- 'insertTable', 'tableFullWidth', 'deleteTable',
|
|
|
- 'insertTableRow', 'deleteTableRow',
|
|
|
- 'insertTableCol', 'deleteTableCol',
|
|
|
- 'tableHeader', 'mergeCells',
|
|
|
- '|',
|
|
|
- 'insertLink', 'editLink', 'unLink',
|
|
|
- '|',
|
|
|
- 'blockquote', 'codeBlock', 'todo',
|
|
|
- '|',
|
|
|
- 'divider', 'splitLine', 'clearStyle',
|
|
|
- '|',
|
|
|
- 'emotion',
|
|
|
- '|',
|
|
|
- 'fullScreen', 'preview'
|
|
|
- ]
|
|
|
- }
|
|
|
+ // 工具栏:不指定 toolbarKeys,使用 wangEditor 5 默认全部已注册菜单
|
|
|
+ // (basic-modules + list-module + table-module + upload-image-module + code-highlight 等)
|
|
|
+ const toolbarConfig = {}
|
|
|
|
|
|
this.toolbar = createToolbar({
|
|
|
editor: this.editor,
|