Update code edit for the codeblocks that are opened in main area and sidebar,or as embeds

This commit is contained in:
sid597
2022-12-08 16:18:19 +05:30
committed by Tienson Qin
parent 160c09851f
commit d2b45a59b3

View File

@@ -260,6 +260,8 @@
state)
:did-update (fn [state]
(reset! (:code-options state) (last (:rum/args state)))
(.setValue @(:editor-atom state)
(string/join "" (butlast (:lines (last (:rum/args state))))))
state)}
[state _config id attr code _theme _options]
[:div.extensions__code