Parcourir la source

feat: 编辑器工具栏启用 wangEditor 5 全部内置菜单

Developer il y a 4 semaines
Parent
commit
36458aa400
2 fichiers modifiés avec 19 ajouts et 5 suppressions
  1. BIN
      dist.zip
  2. 19 5
      src/components/editor/index.vue

BIN
dist.zip


+ 19 - 5
src/components/editor/index.vue

@@ -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'
                 ]
             }