Skip to content

Commit d411c0b

Browse files
committed
fix editor.html: 缩进错误
1 parent 1017a67 commit d411c0b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

editor/editor.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@
135135
lineNumbers: true,
136136
lineWrapping: true,
137137
autofocus: true,
138-
mode: 'javascript',
139-
theme: 'neat'
138+
mode: 'application/json',
139+
theme: 'neat',
140+
autoCloseBrackets: true
140141
})
141142
tplEditor.on('change', function(instance) {
142143
render(instance.getValue())
@@ -156,7 +157,8 @@
156157
lineNumbers: true,
157158
autofocus: false,
158159
mode: 'javascript',
159-
theme: 'neat'
160+
theme: 'neat',
161+
autoCloseBrackets: true
160162
})
161163

162164
// Syntax Demo

0 commit comments

Comments
 (0)