diff --git a/packages/extension-collaboration/src/collaboration.ts b/packages/extension-collaboration/src/collaboration.ts index 9f08febe..725ac6bb 100644 --- a/packages/extension-collaboration/src/collaboration.ts +++ b/packages/extension-collaboration/src/collaboration.ts @@ -47,6 +47,12 @@ export const Collaboration = Extension.create({ fragment: null, }, + onCreate() { + if (this.editor.extensionManager.extensions.find(extension => extension.name === 'history')) { + console.warn('[tiptap warn]: "@tiptap/extension-collaboration" comes with its own history support and is not compatible with "@tiptap/extension-history".') + } + }, + addCommands() { return { undo: () => ({ tr, state, dispatch }) => {