From 9ff2ecf29a6b4409c5102bcb7159ac6173fb58d8 Mon Sep 17 00:00:00 2001 From: Ulion Date: Fri, 22 Jan 2021 11:34:42 +0800 Subject: [PATCH] Normalize doc after load. --- packages/client/src/automerge-editor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/src/automerge-editor.ts b/packages/client/src/automerge-editor.ts index ed3b84d..688173d 100644 --- a/packages/client/src/automerge-editor.ts +++ b/packages/client/src/automerge-editor.ts @@ -103,6 +103,7 @@ export const AutomergeEditor = { }) // onChange expect valid doc, we make sure do normalization before that. + Editor.normalize(e, { force: true }) e.onChange() },