How to store attrs on each word #1720
-
I’m working on an editor using tiptap where users can fix mistakes in transcripts generated by automated speech recognition software. My document schema uses several custom Nodes for related functionality (speaker selection, etc.), and I’m successfully using Vue components for them as necessary, and so far it’s all working well 👏🏻 Now I have to tackle the part where users edit the actual text which has timing and confidence information associated with each word or punctuation mark. Is there an approach I should use to ensure each newly typed word is wrapped in a Node (versus the default of all the words being wrapped in a single Node)? Or would I be best off using a Or is there some other approach I haven’t thought of? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Try Decorations Hope that helps |
Beta Was this translation helpful? Give feedback.
Try Decorations
https://www.tiptap.dev/experiments/linter
Hope that helps