我正在获取updateLinting-找不到函数。
var codeMirrorOptions = {
lineNumbers: true,
mode: 'text/x-yaml', // we are using the yaml editor
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter", "CodeMirror-lint-markers"],
foldGutter: {
rangeFinder: new CodeMirror.fold.combine(CodeMirror.fold.indent, CodeMirror.fold.comment)
},
"lint": {
"getAnnotations": checkYAMLForErrors
}
};
function checkYAMLForErrors(cm, updateLinting, options) {
var errors = CodeMirror.lint.yaml(cm);
updateLinting(cm, errors);
};
有人可以告诉我我在想什么吗?