update readme

This commit is contained in:
Philipp Kühn
2018-11-12 22:54:30 +01:00
parent 665a2e05fd
commit 1f9c9324f9

View File

@@ -45,11 +45,14 @@ export default {
},
data() {
return {
editor: new Editor({
content: '<p>Hi, I'm just a boring paragraph</p>',
}),
editor: null,
}
},
mounted() {
this.editor = new Editor({
content: '<p>Hi, I'm just a boring paragraph</p>',
}),
},
beforeDestroy() {
this.editor.destroy()
},