Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Remove twice initialized plugin

Tomas Valenta0baba5737920
diff --git a/editor/extensions/reference.ts b/editor/extensions/reference.ts
index 5920d695e..87ddc5188 100644
--- a/editor/extensions/reference.ts
+++ b/editor/extensions/reference.ts
@@ -5,7 +5,7 @@ import { PluginKey } from '@tiptap/pm/state'
import attributeHandler from 'utils/attributeHandler'
import { Reference } from 'editor/referenceType'
-import { Suggestion, SuggestionOptions } from './autocomplete'
+import { SuggestionOptions } from './autocomplete'
declare module '@tiptap/core' {
@@ -143,13 +143,4 @@ export default Node.create<ReferenceOptions>({
}),
}
},
-
- addProseMirrorPlugins() {
- return [
- Suggestion({
- editor: this.editor,
- ...this.options.suggestion,
- }),
- ]
- },
})