Attempt to add CodeMirror.resolveMode() to fix v3 modes