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() { data() {
return { return {
editor: new Editor({ editor: null,
content: '<p>Hi, I'm just a boring paragraph</p>',
}),
} }
}, },
mounted() {
this.editor = new Editor({
content: '<p>Hi, I'm just a boring paragraph</p>',
}),
},
beforeDestroy() { beforeDestroy() {
this.editor.destroy() this.editor.destroy()
}, },