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