fix(editor): copy with both plain and rich text

This commit is contained in:
Andelf
2022-05-31 21:25:02 +08:00
committed by Tienson Qin
parent c297748bd8
commit 88b3962dd0
4 changed files with 12 additions and 13 deletions

View File

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