yjs / y-prosemirror

ProseMirror editor binding for Yjs
https://demos.yjs.dev/prosemirror/prosemirror.html
MIT License
355 stars 124 forks source link

Links on images not updating #138

Open jibin2706 opened 1 year ago

jibin2706 commented 1 year ago

Checklist

Describe the bug Marks on images are not getting updated from one document to other

To Reproduce Steps to reproduce the behavior:

  1. Go to the demo example of 'https://docs.yjs.dev/ecosystem/editor-bindings/prosemirror'
  2. Click on Insert Image > Add an image
  3. Click on the image & Click on add or remove link icon and add any link to that image
  4. Inspect the image element, link is added on the first instance
  5. Now inspect the image on other instance, changes are not updated

Expected behavior The link should have been updated on both the editor instance.

Screenshots If applicable, add screenshots to help explain your problem.

Environment Information

Additional context Found this issue on Remirror which uses this library, so tried to reproduce the same. https://github.com/remirror/remirror/issues/2122