无法更新带有棉绒错误的装订线

时间:2018-11-12 10:18:37

标签: codemirror

我正在获取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);
};

有人可以告诉我我在想什么吗?

0 个答案:

没有答案