fix: remove id property when copy block(s) text (#198)

* fix: remove id property when copy block(s) text
This commit is contained in:
Tienson Qin
2020-11-05 14:43:30 +08:00
committed by GitHub
parent c5d66012bb
commit 5c53b5494b
5 changed files with 30 additions and 5 deletions

View File

@@ -3,7 +3,8 @@
[frontend.state :as state]
[cljs-bean.core :as bean]
[promesa.core :as p]
[frontend.util :as util]))
[frontend.util :as util]
[frontend.text :as text]))
(defn check-changed-files-status
[]
@@ -17,3 +18,7 @@
(state/set-changed-files! repo files)))
(p/catch (fn [error]
(js/console.dir error)))))))
(defn copy-to-clipboard-without-id-property!
[content]
(util/copy-to-clipboard! (text/remove-id-property content)))