Blame view

public/assets/addons/fastflow/plugins/codemirror/src/edit/utils.js 267 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
  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)
  }