MCPcopy Create free account
hub / github.com/TypeCellOS/BlockNote / getDoc

Function getDoc

tests/src/utils/editor.ts:25–31  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

23}
24
25export async function getDoc(page: Page) {
26 const window = await page.evaluateHandle("window");
27 const doc = await window.evaluate((win) =>
28 (win as any).ProseMirror.getJSON(),
29 );
30 return doc;
31}
32
33export function removeAttFromDoc(doc: any, att: string) {
34 if (typeof doc !== "object" || doc === null) {

Callers 1

compareDocToSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected