refactoring
This commit is contained in:
@@ -57,8 +57,7 @@ export const EditorContent = defineComponent({
|
|||||||
const editor = props.editor
|
const editor = props.editor
|
||||||
|
|
||||||
// destroy nodeviews before vue removes dom element
|
// destroy nodeviews before vue removes dom element
|
||||||
// @ts-ignore
|
if (!editor.isDestroyed) {
|
||||||
if (editor.view?.docView) {
|
|
||||||
editor.view.setProps({
|
editor.view.setProps({
|
||||||
nodeViews: {},
|
nodeViews: {},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user