More hardened CodeMirror creation.