This commit is contained in:
fantasticit 2022-05-02 17:59:47 +08:00
parent abb1a3868b
commit a4a2205d11
1 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,10 @@
import { EditorView } from 'prosemirror-view';
// @see https://github.com/ueberdosis/tiptap/issues/1451
EditorView.prototype.updateState = function updateState(state) {
if (!this.docView) return; // This prevents the matchesNode error on hot reloads
this.updateStateInner(state, this.state.plugins != state.plugins);
};
export { getSchema } from '@tiptap/core'; export { getSchema } from '@tiptap/core';
export * from './react'; export * from './react';
export * from './start-kit'; export * from './start-kit';