Restructured Project Rep
This commit is contained in:
24
components/Tiptap.vue
Normal file
24
components/Tiptap.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<editor-content :editor="editor" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useEditor, EditorContent } from '@tiptap/vue-3'
|
||||
import StarterKit from '@tiptap/starter-kit'
|
||||
|
||||
const props = defineProps({
|
||||
content: {
|
||||
type: "String",
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
const {content } = props
|
||||
|
||||
const editor = useEditor({
|
||||
content: '<p>I’m running Tiptap with Vue.js. 🎉</p>',
|
||||
extensions: [
|
||||
StarterKit,
|
||||
],
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user