请问一下大家我在使用codeMirror的过程中,初始化codeMirror的时候默认会显示错误的图标
输入错误的数据,我把鼠标放在错误图标上不会显示错误内容。请问大家有没有遇到这个问题。
代码如下:
this
.
codeEditor
=
_CodeMirror
.
fromTextArea
(
this
.
$refs
.
jsonEditor
, {
mode
:
mode
,
// mode: "application/xml application/json", 语法model
tabSize
:
2
,
// 缩进格式
theme
:
'idea'
,
smartIndent
:
true
,
// 自动缩进是否开启
styleActiveLine
:
true
,
// 设置光标所在行高亮
lineNumbers
:
true
,
// 显示行号
indentUnit
:
2
,
// 缩进单位为2
lint
:
true
,
// 开启语法检查
gutters
: [
"CodeMirror-lint-markers"
,
"CodeMirror-linenumbers"
,
"CodeMirror-foldgutter"
,
],
// 语法检查器,可提示错误信息
//lineWrapping: true, // 自动换行
matchBrackets
:
true
,
// 括号匹配
autoCloseBrackets
:
true
,
// 输入和退格时成对
foldGutter
:
true
,
autoRefresh
:
true
});
试过改改初始化默认value值吗?null undefined ''?