fix: prevent bug when editor is destroyed very fast
This commit is contained in:
@@ -48,6 +48,10 @@ export const EditorContent: Component = {
|
||||
beforeDestroy(this: EditorContentInterface) {
|
||||
const { editor } = this
|
||||
|
||||
if (!editor) {
|
||||
return
|
||||
}
|
||||
|
||||
if (!editor.isDestroyed) {
|
||||
editor.view.setProps({
|
||||
nodeViews: {},
|
||||
|
||||
Reference in New Issue
Block a user