@useplume/vue
v0.2.4
Published
Vue 3 adapter for Plume — a customizable rich text editor built on tiptap.
Maintainers
Readme
@useplume/vue
Vue 3 adapter for Plume — a customizable rich text editor built on tiptap.
Install
Plume builds on tiptap v3 — install the @tiptap/core and @tiptap/pm peers explicitly at ^3:
npm install @useplume/vue @useplume/core @tiptap/core@^3 @tiptap/pm@^3
# or: pnpm add @useplume/vue @useplume/core @tiptap/core@^3 @tiptap/pm@^3vue, @useplume/core, @tiptap/core and @tiptap/pm are peer dependencies, so install them alongside.
Already on tiptap v2 elsewhere? Plume needs v3. Either migrate, or isolate Plume on v3 — see Already using tiptap v2?.
Usage
<script setup lang="ts">
import { PlumeEditor } from '@useplume/vue'
import '@useplume/core/styles.css'
</script>
<template>
<PlumeEditor content="<p>Hello Plume 🪶</p>" @update="(editor) => console.log(editor.getHTML())" />
</template>Need lower-level control? Use the usePlumeEditor composable together with Toolbar, ToolbarDropdown, and ToolbarLink.
License
MIT © Ömer Faruk Gezer
