Mercurial
comparison .cms/lib/codemirror/src/edit/utils.js @ 0:78edf6b517a0 draft
24.10
author | Coffee CMS <info@coffee-cms.ru> |
---|---|
date | Fri, 11 Oct 2024 22:40:23 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:78edf6b517a0 |
---|---|
1 import { clearCaches } from "../measurement/position_measurement.js" | |
2 | |
3 export function themeChanged(cm) { | |
4 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + | |
5 cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-") | |
6 clearCaches(cm) | |
7 } |