Skip to content

Commit da23a68

Browse files
authored
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
1 parent 9f142a4 commit da23a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function init(
8181
)
8282
}
8383
const spans = A.spans(doc, pathToTextField)
84-
const pmDoc = pmDocFromSpans(adapter, spans)
84+
const doc = pmDocFromSpans(adapter, spans)
8585
const plugin = syncPlugin({ adapter, handle, path: pathToTextField })
86-
return { schema: adapter.schema, pmDoc, plugin }
86+
return { schema: adapter.schema, doc, plugin }
8787
}

0 commit comments

Comments
 (0)