CodeMirror.innerMode() seems to recursively check innerMode.