docs: update getting started guide

This commit is contained in:
Hans Pagel
2020-11-18 15:28:17 +01:00
parent 2ff5fc2844
commit 0530fd2d8c
4 changed files with 112 additions and 63 deletions

View File

@@ -0,0 +1,30 @@
<template>
<editor-content :editor="editor" />
</template>
<script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
export default {
components: {
EditorContent,
},
data() {
return {
editor: null,
}
},
mounted() {
this.editor = new Editor({
content: '<p>Im running tiptap with Vue.js. 🎉</p>',
extensions: defaultExtensions(),
})
},
beforeDestroy() {
this.editor.destroy()
},
}
</script>