Fix #220
This commit is contained in:
parent
175901bb93
commit
785d1ee021
|
@ -766,6 +766,7 @@ var editors = {
|
|||
foldGutter: true,
|
||||
cursorHeight: 1,
|
||||
path: data.path,
|
||||
profile: 'xhtml', // define Emmet output profile
|
||||
extraKeys: {
|
||||
"Ctrl-\\": "autocompleteAnyWord",
|
||||
".": "autocompleteAfterDot",
|
||||
|
@ -803,6 +804,10 @@ var editors = {
|
|||
"Shift-Alt-J": "selectIdentifier"
|
||||
}
|
||||
});
|
||||
|
||||
if ("text/html" === data.mode) {
|
||||
emmetCodeMirror(editor);
|
||||
}
|
||||
|
||||
editor.on('cursorActivity', function (cm) {
|
||||
$(".edit-exprinfo").remove();
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -655,6 +655,8 @@
|
|||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-{{.codeMirrorVer}}/mode/sql/sql.js"></script>
|
||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/lint/json-lint.js?{{.conf.StaticResourceVersion}}"></script>
|
||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/lint/go-lint.js?{{.conf.StaticResourceVersion}}"></script>
|
||||
|
||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/emmet.js?{{.conf.StaticResourceVersion}}"></script>
|
||||
|
||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/js-beautify-1.5.4/beautify.js?{{.conf.StaticResourceVersion}}"></script>
|
||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/js-beautify-1.5.4/beautify-html.js?{{.conf.StaticResourceVersion}}"></script>
|
||||
|
|
Loading…
Reference in New Issue