mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 15:15:01 +00:00
@@ -261,13 +261,10 @@
|
||||
:did-update (fn [state]
|
||||
(reset! (:code-options state) (last (:rum/args state)))
|
||||
(when-not (:file? (first (:rum/args state)))
|
||||
(->> state
|
||||
:rum/args
|
||||
last
|
||||
:lines
|
||||
butlast
|
||||
(string/join "")
|
||||
(.setValue @(:editor-atom state))))
|
||||
(let [code (nth (:rum/args state) 3)
|
||||
editor @(:editor-atom state)]
|
||||
(when (not= (.getValue editor) code)
|
||||
(.setValue editor code))))
|
||||
state)}
|
||||
[state _config id attr code _theme _options]
|
||||
[:div.extensions__code
|
||||
|
||||
Reference in New Issue
Block a user