From 1f9c9324f9591f461c83cb8872f0e4898e109e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 12 Nov 2018 22:54:30 +0100 Subject: [PATCH] update readme --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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() },