prosekit/extensions/commit
Classes
Section titled “Classes”CommitRecorder
Section titled “CommitRecorder”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”-
new CommitRecorder():
CommitRecorder
Methods
Section titled “Methods”commit()
Section titled “commit()”-
Return a commit object including all changes since the last commit.
null
will be returned if there is no change.
Interfaces
Section titled “Interfaces”Commit
Section titled “Commit”A JSON representation of a commit.
Properties
Section titled “Properties”-
An array of steps in the JSON format that transform the parent node to the current doc node.
Functions
Section titled “Functions”defineCommitRecorder()
Section titled “defineCommitRecorder()”-
function defineCommitRecorder(
commitRecorder
:CommitRecorder
):PlainExtension
-
Define an extension that can record the changes in the editor.
defineCommitViewer()
Section titled “defineCommitViewer()”-
function defineCommitViewer(
commit
:Commit
):PlainExtension
-
Define an extension to display the changes from the given commit in the editor.