diff --git a/CHANGES.md b/CHANGES.md index 5590657dfd..dcb57cb0d4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/frontend/src/app/plugins/api.cljs b/frontend/src/app/plugins/api.cljs index cc65f10883..0b8350b0e2 100644 --- a/frontend/src/app/plugins/api.cljs +++ b/frontend/src/app/plugins/api.cljs @@ -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)