Interestingly I’m trying to do the same thing in my extension, except it’s limited to read/write/listen and no changes to the DOM.
I opened an issue in these forums:
And my current progress can be found on:
In this file you can see how I deal with some other editors, like CM5, in a handful of lines each: