Need help with @ mention schema and collab editing #979
Unanswered
jaisondavis
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Thank you for tiptap! it is awesome!
I needed some help implementing mentions into real-time collab server
I am sending these steps to my socket server to be applied to the stored doc
with this schema:
These are the step I get for @ mention Philip Isik, it sends:
step 1: @philip Isik
step 2: " "
But after step 1, the loop fails and throws a
RangeError: Position 15 out of range
So I checked the content length (inside Prosemirror model > ResolvedPos.resolve), after step 1, it said it was of length 3
Does anyone know why this is happening? been at it for 2 days now. Any help is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions