Workspace.on('editor-change')

Thanks.

What’s the typical way of accessing the previous content state? Is it await app.vault.read(info.file)?