hotfix for hasCodeMirror