MCPcopy
hub / github.com/hokein/electron-sample-apps / themeChanged

Function themeChanged

mini-code-editor/cm/lib/codemirror.js:1388–1391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1386 return (tabCache[w] = {html: str + "</span>", width: w});
1387 }
1388 function themeChanged() {
1389 scroller.className = scroller.className.replace(/\s*cm-s-\S+/g, "") +
1390 options.theme.replace(/(^|\s)\s*/g, " cm-s-");
1391 }
1392 function keyMapChanged() {
1393 var style = keyMap[options.keyMap].style;
1394 wrapper.className = wrapper.className.replace(/\s*cm-keymap-\S+/g, "") +

Callers 1

CodeMirrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected