added support for CodeMirror