diff --git a/src/addon/runmode/codemirror-standalone.js b/src/addon/runmode/codemirror-standalone.js index b463a5cf59..f13f32b2f1 100644 --- a/src/addon/runmode/codemirror-standalone.js +++ b/src/addon/runmode/codemirror-standalone.js @@ -1,4 +1,5 @@ import StringStream from "../../util/StringStream.js" +import { countColumn } from "../../util/misc.js" import * as modeMethods from "../../modes.js" // declare global: globalThis, CodeMirror @@ -17,6 +18,7 @@ CodeMirror.defineMIME("text/plain", "null") CodeMirror.registerHelper = CodeMirror.registerGlobalHelper = Math.min CodeMirror.splitLines = function(string) { return string.split(/\r?\n|\r/) } +CodeMirror.countColumn = countColumn CodeMirror.defaults = { indentUnit: 2 } export default CodeMirror