MCPcopy Create free account
hub / github.com/TruthHun/BookStack / loadMode

Function loadMode

static/mergely/lib/codemirror.js:238–241  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

236 // Used to get the editor into a consistent state again when options change.
237
238 function loadMode(cm) {
239 cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption);
240 resetModeState(cm);
241 }
242
243 function resetModeState(cm) {
244 cm.doc.iter(function(line) {

Callers 2

codemirror.jsFile · 0.70
attachDocFunction · 0.70

Calls 1

resetModeStateFunction · 0.70

Tested by

no test coverage detected