Event handlers in CM6

What is the recommended way to monitor for input / changes to state?

I would like to call a function any time a transaction completes - such as parsing / compiling a code box.

It’s difficult to find this info in the docs, any references would be appreciated. Is it related to EditorView.inputHandler?


You’re probably looking for EditorView.updateListener.

1 Like