vue-tiptap-ui
v1.0.0
Published
A Vue 3 UI component library for Tiptap editor - Vue port of the original React Tiptap UI components
Maintainers
Readme
Vue Tiptap UI Components
A Vue 3 UI component library for Tiptap editor. This is a port from the React original.
Installation
yarn add vue-tiptap-uiUsage
Include the styles in your app-level CSS:
@use 'vue-tiptap-ui/style.css';Then import and use Editor in your Vue components as follows (put together your own toolbar as you see fit):
<template>
<Editor
v-model="content"
:extensions="extensions"
>
<template #toolbar>
<div>
<MarkButton type="bold" />
<MarkButton type="italic" />
<MarkButton type="underline" />
</div>
</template>
</Editor>
</template>
<script setup>
import StarterKit from '@tiptap/starter-kit'
import { Underline } from '@tiptap/extension-underline'
import { Editor, MarkButton } from 'vue-tiptap-ui'
const extensions = [StarterKit, Underline]
const content = defineModel()
</script>See src/example which is a full Vue3 demo app: checkout the entire repo, then run yarn dev to see it in action.
