diff --git a/packages/vue-3/src/EditorContent.ts b/packages/vue-3/src/EditorContent.ts index 807f8808..2a296684 100644 --- a/packages/vue-3/src/EditorContent.ts +++ b/packages/vue-3/src/EditorContent.ts @@ -57,8 +57,7 @@ export const EditorContent = defineComponent({ const editor = props.editor // destroy nodeviews before vue removes dom element - // @ts-ignore - if (editor.view?.docView) { + if (!editor.isDestroyed) { editor.view.setProps({ nodeViews: {}, })