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

Function getMode

static/editor.md/lib/codemirror/mode/slim/slim.js:311–316  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

309 }
310
311 function getMode(mode) {
312 if (!modes.hasOwnProperty(mode)) {
313 return modes[mode] = createMode(mode);
314 }
315 return modes[mode];
316 }
317
318 function startSubMode(mode, state) {
319 var subMode = getMode(mode);

Callers 1

startSubModeFunction · 0.70

Calls 1

createModeFunction · 0.85

Tested by

no test coverage detected