Seditio Source
Root |
./othercms/slaed_cms_6.2_pro/plugins/codemirror/src/edit/utils.js
import { clearCaches } from "../measurement/position_measurement"

export function themeChanged(cm) {
  cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
    cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-")
  clearCaches(cm)
}