Browse Source

fix:修复引入plugin-mention插件后Editor组件报错

朱桂志 8 tháng trước cách đây
mục cha
commit
2e1ef8aee4
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/components/Editor/src/Editor.vue

+ 6 - 0
src/components/Editor/src/Editor.vue

@@ -90,6 +90,12 @@ const editorConfig = computed((): IEditorConfig => {
       },
       autoFocus: false,
       scroll: true,
+      EXTEND_CONF: {
+        mentionConfig: {
+          showModal: () => {},
+          hideModal: () => {}
+        }
+      },
       MENU_CONF: {
         ['uploadImage']: {
           server: getUploadUrl(),