mirror of
https://github.com/penpot/penpot.git
synced 2026-11-07 02:20:36 +00:00
🐛 Fix pasted text invisible in new text box (#12859)
This commit is contained in:
parent
7666d7d500
commit
d82b5a4b1e
@ -256,7 +256,10 @@
|
||||
:on-blur on-blur
|
||||
:on-focus on-focus
|
||||
:handle-return handle-return
|
||||
:strip-pasted-styles true
|
||||
;; Do not set strip-pasted-styles. When true, draft-js never calls
|
||||
;; handlePastedText, so caret/block styles are not applied on paste.
|
||||
;; handle-pasted-text always returns "handled", so pasted HTML/styles
|
||||
;; are still stripped.
|
||||
:handle-pasted-text handle-pasted-text
|
||||
:handle-drop handle-drop
|
||||
:custom-style-fn (partial styles-fn shape)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user