From fde6126ac674bc7a3b9bcec983e555431b35b086 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 15 Mar 2021 15:51:55 +0100 Subject: [PATCH] :bug: Remove pasted styles on the editor. --- frontend/src/app/main/ui/workspace/shapes/text/editor.cljs | 1 + 1 file changed, 1 insertion(+) 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 525373ff2c..35e211c811 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs @@ -156,6 +156,7 @@ {:on-change on-change :on-blur on-blur :handle-return handle-return + :strip-pasted-styles true :custom-style-fn (fn [styles _] (-> (ted/styles-to-attrs styles) (sts/generate-text-styles)))