yorkie-team / yorkie

Yorkie is a document store for collaborative applications.
https://yorkie.dev
Apache License 2.0
780 stars 144 forks source link

Synchronization fails when editing including Undo In the CodeMirror example. #914

Closed hackerwins closed 3 months ago

hackerwins commented 3 months ago

What happened:

In the CodeMirror example, synchronization fails when editing including the Undo feature.

What you expected to happen:

Expected synchronization to work properly when using the Undo feature.

How to reproduce it (as minimally and precisely as possible):

  1. Paste A\nB\nC (three paragraphs: A, B, C) into an empty document.
  2. Select and delete paragraphs B and C.
  3. Use Undo (Cmd+Z) to undo the deletion from the previous step.
  4. Select paragraphs B and C again and delete them. ❌

screen-capture (1).webm

Anything else we need to know?:

Environment:

hackerwins commented 3 months ago

Fixed by https://github.com/yorkie-team/yorkie-js-sdk/pull/860.