mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 12:39:03 +08:00
fix
This commit is contained in:
parent
d869847da1
commit
19adfe3a6c
@ -228,11 +228,10 @@ export class Editor extends EventEmitter {
|
||||
}
|
||||
|
||||
public destroy() {
|
||||
if (!this.view) {
|
||||
return
|
||||
if (this.view) {
|
||||
this.view.destroy()
|
||||
}
|
||||
|
||||
this.view.destroy()
|
||||
this.removeAllListeners()
|
||||
removeElement(this.css)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user