Represents an edit operation performed on a notebook document.
Currently supports content updates that replace the entire notebook content. Used for tracking edit history and implementing undo/redo functionality.
const edit: NotebookEdit = { type: "content-update", content: new TextEncoder().encode(JSON.stringify(notebookData))};document.makeEdit(edit); Copy
const edit: NotebookEdit = { type: "content-update", content: new TextEncoder().encode(JSON.stringify(notebookData))};document.makeEdit(edit);
Readonly
Binary representation of the notebook content after the edit
The type of edit operation - currently only content updates are supported
Represents an edit operation performed on a notebook document.
Currently supports content updates that replace the entire notebook content. Used for tracking edit history and implementing undo/redo functionality.
Example