Skip to content

Commit c2ffcc5

Browse files
修改example的editor配置。review by zhurch
1 parent f0831f9 commit c2ffcc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/js/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function initCodeEditor() {
4040
if (!aceEditor) {
4141
aceEditor = ace.edit("editor");
4242
aceEditor.setTheme("ace/theme/textmate");
43-
aceEditor.getSession().setMode("ace/mode-javascript/html");
43+
aceEditor.getSession().setMode("ace/mode/javascript");
4444
aceEditor.getSession().setUseWrapMode(true);
4545
aceEditor.setShowPrintMargin(false);
4646
}

0 commit comments

Comments
 (0)