button and cmdk

This commit is contained in:
Ben Yorke
2023-06-30 09:31:36 +02:00
parent dc78790000
commit 4e2d980955
21 changed files with 401 additions and 70 deletions

View File

@@ -415,12 +415,8 @@
(when config-edit?
{:hintOptions {}})
user-options)
theme-mode (state/sub :ui/theme)
system-theme-mode (state/sub :ui/system-theme)
editor (when textarea
(from-textarea textarea (clj->js cm-options)))
element-key (str "editor-" id "-" radix-color "-" theme-mode "-" system-theme-mode "-" theme)]
(js/console.log "element-key: " element-key theme)
(from-textarea textarea (clj->js cm-options)))]
(when editor
(let [textarea-ref (rum/ref-node state textarea-ref-name)
element (.getWrapperElement editor)]