Cursor is in the wrong position, when IME just after a link node

Hi, the reproduce steps are as following:

  1. move the cursor just at the end of the link
  2. switch to IME input (Chinese or Japanese are both OK), typing ‘e’ then the cursor seems to be before the character " | い"。
  3. continue typing ‘e’, the cursor put back to the right pos "いい | " the gif image as attached below: 2024-04-10 at 21.28

I don’t know if it’s an issue of prosemirror, just doesn’t seem to be right.

my browser: chrome version 123.0.6312.107 arm64
os: mac 14.4

This might be fixed in prosemirror-view 1.33.11 and up. At least, I cannot reproduce it anymore.

I think I have a similar example :

I want to customize the UI for the link, so I created an inline link node with a nodeView. When typing after the link, the string is unexpectedly not recorded by the editor but only exists in the DOM tree.

mini reprod(typing after the link): https://vueditor-rich-text.netlify.app/#eNqVUFFPgzAY/Cukz9vQN+3bjEumEacDFjOzkI5+g0JXavnA6cJ/t2AyMeFhe2q/u9zl7o6EFzGhR4JfGgjtrhGJC4WgkND3E4ECJViKIZqyFSi27+OC2yMP9Ur68un7YelNX7Wch2aqSTNsCAe0uu6hZCni1Ans35lxgYVxPgVaQGhk2mGKO6sKJllJmk0zOlmkwLhQyUCqP6bLtS0gmj+/qcPstqzTyFv769K3pIQaJKHXwwmlUHnfOzWwa70RdUldN7EJq+0kLvZuXUGX2jW2xritNP4FrJzDjlUS226Xis8Z7jLDzb/9NDMsMUynAwv2uW7Dl0cvu6qDLL+J7hcf9V2EiyAkjTVsfgBKyMdc

Oh right, a link node, not mark. The cursor in that demo seems stuck before inserted text at the end of that link, even when you type without composition. I cannot reproduce that behavior when I set up a demo using a link mark myself. You’ll have to try and reduce it to a minimal script if you want me to take a look (or, often, the problem becomes obvious during reduction).

I tried it, and I couldn’t reproduce it using only prosemirror, so this might be a bug in tiptap.