Changeset 3979:af2eb4115a98 for admin/js/codemirror/mode/htmlmixed
- Timestamp:
- 06/24/19 13:04:56 (6 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/codemirror/mode/htmlmixed/htmlmixed.js
r3617 r3979 1 1 // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 // Distributed under an MIT license: http ://codemirror.net/LICENSE2 // Distributed under an MIT license: https://codemirror.net/LICENSE 3 3 4 4 (function(mod) { … … 106 106 }; 107 107 state.localMode = mode; 108 state.localState = CodeMirror.startState(mode, htmlMode.indent(state.htmlState, "" ));108 state.localState = CodeMirror.startState(mode, htmlMode.indent(state.htmlState, "", "")); 109 109 } else if (state.inTag) { 110 110 state.inTag += stream.current() … … 136 136 indent: function (state, textAfter, line) { 137 137 if (!state.localMode || /^\s*<\//.test(textAfter)) 138 return htmlMode.indent(state.htmlState, textAfter );138 return htmlMode.indent(state.htmlState, textAfter, line); 139 139 else if (state.localMode.indent) 140 140 return state.localMode.indent(state.localState, textAfter, line);
Note: See TracChangeset
for help on using the changeset viewer.