mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
use forked rum
This commit is contained in:
@@ -286,7 +286,11 @@
|
||||
(when-let [textarea (rum/ref-node state textarea-ref-name)]
|
||||
(gobj/set textarea "defaultValue" code)
|
||||
(gobj/set textarea "value" code))))
|
||||
state)}
|
||||
state)
|
||||
;; codemirror need to be re-rendered to get the new pos_meta
|
||||
:did-update (fn [state]
|
||||
(load-and-render! state)
|
||||
state)}
|
||||
[state _config id attr code _theme _options]
|
||||
[:div.extensions__code
|
||||
(when-let [mode (:data-lang attr)]
|
||||
|
||||
Reference in New Issue
Block a user