Kaynağa Gözat

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

朱桂志 7 ay önce
ebeveyn
işleme
2e1ef8aee4
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  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,
       autoFocus: false,
       scroll: true,
       scroll: true,
+      EXTEND_CONF: {
+        mentionConfig: {
+          showModal: () => {},
+          hideModal: () => {}
+        }
+      },
       MENU_CONF: {
       MENU_CONF: {
         ['uploadImage']: {
         ['uploadImage']: {
           server: getUploadUrl(),
           server: getUploadUrl(),