yjs / y-prosemirror

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

When I undo some content across lines, the enabled state of the tool gets lost. #139

Open shlroland opened 1 year ago

shlroland commented 1 year ago

Checklist

Describe the bug When I undo some content across lines, the enabled state of the tool gets lost.

To Reproduce Steps to reproduce the behavior:

  1. can use the official example https://docs.yjs.dev/ecosystem/editor-bindings/prosemirror
  2. write something and ctrl-z
  3. some tool buttons are disabled

Expected behavior tool buttons are still enabled

Screenshots

https://github.com/yjs/y-prosemirror/assets/45024986/cab16ca0-fcb4-4206-a0e3-3fb7dc085bd0

Environment Information

Additional context Add any other context about the problem here.