fix: prevent bug when editor is destroyed very fast
This commit is contained in:
@@ -56,6 +56,10 @@ export const EditorContent = defineComponent({
|
||||
onBeforeUnmount(() => {
|
||||
const editor = props.editor
|
||||
|
||||
if (!editor) {
|
||||
return
|
||||
}
|
||||
|
||||
// destroy nodeviews before vue removes dom element
|
||||
if (!editor.isDestroyed) {
|
||||
editor.view.setProps({
|
||||
|
||||
Reference in New Issue
Block a user