fix: internal blocks paste

This commit is contained in:
Tienson Qin
2023-03-29 00:29:38 +08:00
committed by Andelf
parent 07a3adcb52
commit bc635eaf4b
9 changed files with 108 additions and 91 deletions

View File

@@ -207,5 +207,6 @@
[:div.mt-4
(ui/button (if @*copied? "Copied to clipboard!" "Copy to clipboard")
:on-click (fn []
(util/copy-to-clipboard! @*content (when (= tp :html) @*content))
(util/copy-to-clipboard! @*content
:html (when (= tp :html) @*content))
(reset! *copied? true)))]]))