mirror of https://github.com/penpot/penpot.git
🐛 Fix problem with text in plugins (#7446)
This commit is contained in:
parent
e38dd21307
commit
d5b743c604
|
|
@ -6,6 +6,10 @@
|
|||
|
||||
- Improve workpace file loading [Github 7366](https://github.com/penpot/penpot/pull/7366)
|
||||
|
||||
### :bug: Bugs fixed
|
||||
|
||||
- Fix regression with text shapes creation with Plugins API [Taiga #12244](https://tree.taiga.io/project/penpot/issue/12244)
|
||||
|
||||
|
||||
## 2.10.0
|
||||
|
||||
|
|
|
|||
|
|
@ -338,8 +338,9 @@
|
|||
:else
|
||||
(let [page (dsh/lookup-page @st/state)
|
||||
shape (-> (cts/setup-shape {:type :text :x 0 :y 0 :grow-type :auto-width})
|
||||
(txt/change-text text)
|
||||
(update :content txt/change-text text)
|
||||
(assoc :position-data nil))
|
||||
|
||||
changes
|
||||
(-> (cb/empty-changes)
|
||||
(cb/with-page page)
|
||||
|
|
|
|||
Loading…
Reference in New Issue