y-prosemirror
y-prosemirror copied to clipboard
equalYTextPText does not compare mark names, only attributes
Describe the bug
sync-plugin does not detect changes when mark changed. Based on what I see in code, I assume that the problem is in equalYTextPText function, it compares attributes, but does not actually check mark types.
To Reproduce
- Type some text and mark it with
bold - Change mark to
code. I'm using tiptap, so I runtoggleCodecommand that unsetsboldmark and setscodemark. - The change won't be applied to the ydoc/not sent to the server
Expected behavior The plugin is to able to recognize mark change.