From 9b0a524ac6837820eb201d9c3aa1c8b279fa3aa4 Mon Sep 17 00:00:00 2001 From: devleejb Date: Tue, 2 Jul 2024 23:03:40 +0900 Subject: [PATCH] Add log to snapshot handler --- frontend/src/utils/yorkie/yorkieSync.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/utils/yorkie/yorkieSync.ts b/frontend/src/utils/yorkie/yorkieSync.ts index 58c48855..ac4eab52 100644 --- a/frontend/src/utils/yorkie/yorkieSync.ts +++ b/frontend/src/utils/yorkie/yorkieSync.ts @@ -53,6 +53,7 @@ class YorkieSyncPluginValue implements cmView.PluginValue { // The text is replaced to snapshot and must be re-synced. const text = this._doc.getRoot().content; + console.log("YorkieSyncPlugin: Replacing the text to snapshot: ", text.toString()); view.dispatch({ changes: { from: 0, to: view.state.doc.length, insert: text.toString() }, annotations: [cmState.Transaction.remote.of(true)],