Rich text / foldkit-richtext-dom/editor-bundle
replaceChangeSet
function · packages/richtext-dom/src/editor-bundle.ts:147
function replaceChangeSet(
previous: RichText.Document,
next: RichText.Document,
): RichText.ChangeSetWhat differs between two whole documents, for a patch from one to the other, in a transaction's terms: the runs whose text or marks changed and the blocks holding them, blocks whose own fields changed, what came and went, and whether any block moved.