y-prosemirror icon indicating copy to clipboard operation
y-prosemirror copied to clipboard

equalYTextPText does not compare mark names, only attributes

Open aonnikov opened this issue 2 months ago • 0 comments

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

  1. Type some text and mark it with bold
  2. Change mark to code. I'm using tiptap, so I run toggleCode command that unsets bold mark and sets code mark.
  3. 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.

aonnikov avatar Oct 14 '25 18:10 aonnikov