Skip to content

Commit

Permalink
[webui] Fix code mirror file mode
Browse files Browse the repository at this point in the history
It's mode and not file type. This caused that it's not possible to edit special files (eg .spec, .js) in the
codemirror editor.
  • Loading branch information
ChrisBr committed Nov 6, 2015
1 parent 88cb88e commit 67e0bb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function use_codemirror(id, read_only, mode)
else {
codeMirrorOptions['addToolBars'] = 0;
if (mode.length)
codeMirrorOptions['fileType'] = mode;
codeMirrorOptions['mode'] = mode;
codeMirrorOptions['extraKeys'] = {"Tab": "defaultTab", "Shift-Tab": "indentLess"};
}

Expand Down

0 comments on commit 67e0bb2

Please sign in to comment.