MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / loadMode

Function loadMode

static/libs/codemirror.js:4623–4626  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

4621// Used to get the editor into a consistent state again when options change.
4622
4623function loadMode(cm) {
4624 cm.doc.mode = getMode(cm.options, cm.doc.modeOption);
4625 resetModeState(cm);
4626}
4627
4628function resetModeState(cm) {
4629 cm.doc.iter(function (line) {

Callers 2

attachDocFunction · 0.85
defineOptionsFunction · 0.85

Calls 2

getModeFunction · 0.85
resetModeStateFunction · 0.85

Tested by

no test coverage detected