Upgrade Tiptap from v2 to v3 (#597)

- Upgrade @tiptap/core, starter-kit, vue-3, pm, extension-text-align to v3
- Remove @tiptap/extension-link (now bundled in StarterKit v3)
- Move Link config into StarterKit.configure()
This commit is contained in:
Darko Gjorgjijoski
2026-04-02 16:35:43 +02:00
committed by GitHub
parent 63d3a7fc8e
commit d75a957183
2 changed files with 8 additions and 11 deletions

View File

@@ -73,7 +73,6 @@ import { ref, onUnmounted, watch, markRaw } from 'vue'
import { useEditor, EditorContent } from '@tiptap/vue-3'
import StarterKit from '@tiptap/starter-kit'
import TextAlign from '@tiptap/extension-text-align'
import Link from '@tiptap/extension-link'
import { EllipsisVerticalIcon } from '@heroicons/vue/24/outline'
import {
BoldIcon,
@@ -114,14 +113,13 @@ export default {
const editor = useEditor({
content: props.modelValue,
extensions: [
StarterKit,
StarterKit.configure({
link: { openOnClick: false },
}),
TextAlign.configure({
types: ['heading', 'paragraph'],
alignments: ['left', 'right', 'center', 'justify'],
}),
Link.configure({
openOnClick: false,
}),
],
onUpdate: ({ editor }) => {
emit('update:modelValue', editor.getHTML())