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

Function themeChanged

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

Source from the content-addressed store, hash-verified

290 }
291
292 function themeChanged(cm) {
293 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
294 cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
295 clearCaches(cm);
296 }
297
298 function guttersChanged(cm) {
299 updateGutters(cm);

Callers 2

CodeMirrorFunction · 0.70
codemirror.jsFile · 0.70

Calls 1

clearCachesFunction · 0.70

Tested by

no test coverage detected