Snapshot
Defined in: snapshot.ts:8
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Snapshot(editorOrState): Snapshot;Defined in: snapshot.ts:11
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
editorOrState | | EditorState | { getState: () => EditorState; } |
Returns
Section titled “Returns”Snapshot
Properties
Section titled “Properties”| Property | Modifier | Type | Defined in |
|---|---|---|---|
data | readonly | SnapshotData | snapshot.ts:9 |
Methods
Section titled “Methods”serialize()
Section titled “serialize()”serialize(): string;Defined in: snapshot.ts:16
Returns
Section titled “Returns”string
deserialize()
Section titled “deserialize()”static deserialize(payload): Snapshot;Defined in: snapshot.ts:20
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
payload | string |
Returns
Section titled “Returns”Snapshot