I'm using Vue3 & TypeScript to build a TipTap Wysiwyg editor. Having issues when trying to use the Link Extension (other extensions such as StarterKit, Highlight and TaskList work fine).
Following the docs here: https://tiptap.dev/api/marks/link/
I installed the correct Link extension yarn add @tiptap/extension-link
imported import Link from '@tiptap/extension-link'
Added the Link extension using default options to the editor as such:
setup() {
const editor = useEditor({
extensions: [..., Link],
...
return {
editor,
}
}
Getting the following error:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'target') tiptap-extension-link.esm.js?2dbe:148
Any help will be greatly appriciated.