Some gadgets that interact with the textbox/CodeMirror editor would be easier to handle if there was a mw.hook fired when the editor changes. For example, rebinding event handlers to the active editor element.
I think should be as simple as a mw.hook.fire in ext.CodeMirror.js