diff --git a/README.md b/README.md index d3830007..0d6c904c 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,14 @@ export default { }, data() { return { - editor: new Editor({ - content: '
Hi, I'm just a boring paragraph
', - }), + editor: null, } }, + mounted() { + this.editor = new Editor({ + content: 'Hi, I'm just a boring paragraph
', + }), + }, beforeDestroy() { this.editor.destroy() },