refactoring

This commit is contained in:
Philipp Kühn 2021-03-05 10:20:17 +01:00
parent 983b56a5f2
commit aa3913cb06

View File

@ -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: {},
})