diff --git a/packages/client/src/tiptap/core/extensions/title.ts b/packages/client/src/tiptap/core/extensions/title.ts index 6399326..c501d18 100644 --- a/packages/client/src/tiptap/core/extensions/title.ts +++ b/packages/client/src/tiptap/core/extensions/title.ts @@ -78,7 +78,6 @@ export const Title = Node.create({ addProseMirrorPlugins() { const { editor } = this; let shouldSelectTitleNode = true; - let editorView; const closeSelectTitleNode = () => { shouldSelectTitleNode = false; @@ -88,15 +87,6 @@ export const Title = Node.create({ return [ new Plugin({ key: TitlePluginKey, - view: (view) => { - editorView = view; - - return { - update(view) { - editorView = view; - }, - }; - }, props: { decorations: (state) => { const { doc } = state;