mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 04:19:08 -05:00
🐛 Fix fill information not complete when paste plain text
This commit is contained in:
parent
f2862b6c16
commit
e4eb8004e2
2 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,11 @@
|
||||||
# CHANGELOG
|
# 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
|
## 1.14.1-beta
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
[app.common.pages.helpers :as cph]
|
[app.common.pages.helpers :as cph]
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.common.spec.shape :as spec.shape]
|
[app.common.spec.shape :as spec.shape]
|
||||||
|
[app.common.text :as txt]
|
||||||
[app.common.transit :as t]
|
[app.common.transit :as t]
|
||||||
[app.common.uuid :as uuid]
|
[app.common.uuid :as uuid]
|
||||||
[app.config :as cfg]
|
[app.config :as cfg]
|
||||||
|
@ -1571,7 +1572,7 @@
|
||||||
(let [paragraphs (->> (str/lines text)
|
(let [paragraphs (->> (str/lines text)
|
||||||
(map str/trim)
|
(map str/trim)
|
||||||
(mapv #(hash-map :type "paragraph"
|
(mapv #(hash-map :type "paragraph"
|
||||||
:children [{:text %}])))]
|
:children [(merge txt/default-text-attrs {:text %})])))]
|
||||||
{:type "root"
|
{:type "root"
|
||||||
:children [{:type "paragraph-set" :children paragraphs}]}))
|
:children [{:type "paragraph-set" :children paragraphs}]}))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue