🐛 Fix pasted text invisible in new text box (#12859)

This commit is contained in:
Elena Torró 2026-11-05 15:00:46 +01:00 committed by GitHub
parent 7666d7d500
commit d82b5a4b1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)