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

Function loadMode

static/editor.md/lib/codemirror/lib/codemirror.js:232–235  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

230 // Used to get the editor into a consistent state again when options change.
231
232 function loadMode(cm) {
233 cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption);
234 resetModeState(cm);
235 }
236
237 function resetModeState(cm) {
238 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