From e4eb8004e28cce2afe0fe9e8535bf5ff7e9208d3 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 28 Jun 2022 07:33:29 +0200 Subject: [PATCH] :bug: Fix fill information not complete when paste plain text --- CHANGES.md | 6 ++++++ frontend/src/app/main/data/workspace.cljs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 6fe0ea01b..0e3d44df0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # CHANGELOG +## 1.14.2-beta + +### :bug: Bugs fixed + +- Fix fill information not complete when paste plain text [Taiga #3680](https://tree.taiga.io/project/penpot/issue/3680) + ## 1.14.1-beta ### :bug: Bugs fixed diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 6ada6cc96..b69e77cb6 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -19,6 +19,7 @@ [app.common.pages.helpers :as cph] [app.common.spec :as us] [app.common.spec.shape :as spec.shape] + [app.common.text :as txt] [app.common.transit :as t] [app.common.uuid :as uuid] [app.config :as cfg] @@ -1571,7 +1572,7 @@ (let [paragraphs (->> (str/lines text) (map str/trim) (mapv #(hash-map :type "paragraph" - :children [{:text %}])))] + :children [(merge txt/default-text-attrs {:text %})])))] {:type "root" :children [{:type "paragraph-set" :children paragraphs}]}))