temporarily compensate for regression from CodeMirror 4