How can I use VueNodeViewRenderer with addInputRules whiling maintaining the node textContent? #5439
Unanswered
mcfarljw
asked this question in
Questions & Help
Replies: 1 comment
-
Same issue here but with react node. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been following the Vue guide for custom extensions (https://tiptap.dev/docs/editor/extensions/custom-extensions/node-views/vue) and have been having troubles when adding custom input rules (see
addInputRules
). What I want is when a user types[[world]]
it treats it as<token>world</token>
. It's kind of working but theworld
text is getting omitted leaving just[[ ]]
with an empty element in the middle. Any thoughts?Reproduction Link:
https://stackblitz.com/edit/nuxt-starter-muodjz?file=tiptap%2FToken.ts,tiptap%2FToken.vue
Beta Was this translation helpful? Give feedback.
All reactions