@mocanvas/editor · function

getSnapshot

declare function getSnapshot(editor: Editor): TLEditorSnapshot

Everything needed to reopen this editor exactly as it is: the document, and where the person using it was.

The document half is migrated on load, not here, so a snapshot taken today still opens in a build shipped next year.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.