In reply to Matt.

The concern was, to simply implement CodeMirror same way as existing in core, and fix JS TypErrors, which both did not happen.

Relevant issue #6680.