소스 검색

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

朱桂志 7 달 전
부모
커밋
2e1ef8aee4
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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(),