From da23a68bc4976e5396423313cc44359d902b620f Mon Sep 17 00:00:00 2001 From: Calliope <30454698+c4lliope@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:21:42 -0500 Subject: [PATCH] Conform `init()` type to ProseMirror `EditorState.create()` A change here means there is no more need for: https://github.com/automerge/automerge.github.io/pull/99#pullrequestreview-2436880654 --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index b6282b0..a9e8fbe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -81,7 +81,7 @@ export function init( ) } const spans = A.spans(doc, pathToTextField) - const pmDoc = pmDocFromSpans(adapter, spans) + const doc = pmDocFromSpans(adapter, spans) const plugin = syncPlugin({ adapter, handle, path: pathToTextField }) - return { schema: adapter.schema, pmDoc, plugin } + return { schema: adapter.schema, doc, plugin } }