mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 16:07:22 +02:00
🐛 Fix problem with pasting text into text editor
This commit is contained in:
parent
7fe419ecb0
commit
9d545004cb
3 changed files with 63 additions and 6 deletions
|
@ -126,3 +126,7 @@
|
|||
(as-> state $
|
||||
(reduce redfn $ blocks)
|
||||
(impl/setSelection $ selection)))))
|
||||
|
||||
(defn insert-text [state text attrs]
|
||||
(let [style (txt/attrs-to-styles attrs)]
|
||||
(impl/insertText state text (clj->js attrs) (clj->js style))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue