mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 00:31:40 +02:00
🐛 Fix copy/paste issues
This commit is contained in:
parent
4881bf3619
commit
4ef631fd6a
6 changed files with 82 additions and 5 deletions
|
@ -145,6 +145,10 @@
|
|||
(not= (.-tagName ^js target) "INPUT")) ;; an editable control
|
||||
(.. ^js event getBrowserEvent -clipboardData))))
|
||||
|
||||
(defn extract-html-text
|
||||
[clipboard-data]
|
||||
(.getData clipboard-data "text/html"))
|
||||
|
||||
(defn extract-text
|
||||
[clipboard-data]
|
||||
(.getData clipboard-data "text"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue