mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
refactoring
This commit is contained in:
parent
983b56a5f2
commit
aa3913cb06
@ -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: {},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user