Skip to content

Commit

Permalink
Update code edit for the codeblocks that are opened in main area and …
Browse files Browse the repository at this point in the history
…sidebar,or as embeds
  • Loading branch information
sid597 authored and tiensonqin committed Dec 16, 2022
1 parent 160c098 commit d2b45a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/frontend/extensions/code.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2b45a5

Please sign in to comment.