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:
- Use a custom content expression for document
- Create a document without text content
- Update attributes of a node without text content
Expected behavior Attributes should always be synced.
Screenshots
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)
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 ๐