Hello,
I want to listen for changes in codemirror. CM5 used to have a onBeforeChange in react-codemirror2 (which translated to BeforeChange or onChange in CM). This seems to be missing in CM6. The only way to listen for changes I found was to use EditorView.updateListener.of(update => ...)
However this is called after all the extension processing is done like syntax highlighting etc.
In my case, my syntax highlighting info comes after processing most recent changes and thus if I get called after, my most recent character is left out of syntax highlight.
Is there any way to listen for changes before any other extension touches the data (similar to CM5)?