Previously in CodeMirror 5, the change event had an origin
attribute which showed on how the doc was changed
{
from: Pos,
to: Pos,
text: Array[1],
removed: Array[1],
origin:: "+input"
}
editor.on('change', (instance, changes) => {
console.log(changes)
How to get the same in CodeMirror 6 ? when changing the doc using dispatch method, how to know if it was changed by the user or by the dispatch method ? @marijn