y-prosemirror: Updating attributes is not working when there is no text content and using a custom document content expression

Describe the bug Updating attributes is not working when there is no text content. But this only happens when using a custom document content expression. In my example (gif below) Iโ€™m using content: 'taskList'. When using the default content: 'block+' everything works as expected.

To Reproduce Steps to reproduce the behavior:

  1. Use a custom content expression for document
  2. Create a document without text content
  3. Update attributes of a node without text content

Expected behavior Attributes should always be synced.

Screenshots pv5nb-j3j4r

Environment Information

  • Chrome
  • y-prosemirror@1.0.0, y-websocket@1.3.8

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

Hey, sorry if I was unclear. I donโ€™t fully understand how y.js works under the hood, so itโ€™s hard for me to debug correctly for you. But with y-prosemirror@1.0.3 everything works as expected โ€“ for both cases. Thank you very much! ๐Ÿ™Œ

Oh, and what a beautiful editor that is ๐Ÿ˜‰