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

Function themeChanged

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

Source from the content-addressed store, hash-verified

296 }
297
298 function themeChanged(cm) {
299 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
300 cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
301 clearCaches(cm);
302 }
303
304 function guttersChanged(cm) {
305 updateGutters(cm);

Callers 2

CodeMirrorFunction · 0.70
codemirror.jsFile · 0.70

Calls 1

clearCachesFunction · 0.70

Tested by

no test coverage detected