Ensured that correct `CodeMirror` instance is chosen