add destroy function

This commit is contained in:
Philipp Kühn
2018-09-10 22:34:07 +02:00
parent b57bfdaa84
commit bad0b1debb

View File

@@ -195,6 +195,12 @@ export default {
})
},
destroyEditor() {
if (this.view) {
this.view.destroy()
}
},
updateMenuActions() {
this.menuActions = buildMenuActions({
schema: this.schema,
@@ -233,4 +239,8 @@ export default {
this.initEditor()
},
beforeDestroy() {
this.destroyEditor()
},
}