In order to benefit from stylus/pen input, I am trying to migrate our rather involved collaborative editor based on CodeMirror 5 to CodeMirror 6. I can see that stylus/pen input is accepted after my partial migration to CM6, which is encouraging. Some things become much easier to do now, such as the position in the document. However, the existing editor relies heavily on listening to changes (for saving in the background etc.), and I cannot find a worked-out example of a view plugin, which is supposed to substitute for the event listeners.
In fact, I would like to see as complete an example as possible of an entire editor based on CM6. I am having problems with the linewrapping extension and with decorations, too, and an example might be helpful.