From d82b5a4b1e7cb6369b59c639dc952644f091ef24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elena=20Torr=C3=B3?= Date: Thu, 5 Nov 2026 15:00:46 +0100 Subject: [PATCH] :bug: Fix pasted text invisible in new text box (#12859) --- frontend/src/app/main/ui/workspace/shapes/text/editor.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs index 770a1ebec7..f7e55cd8be 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs @@ -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)