From d5b743c604a4d782a0585baeb5e74893ce8833a6 Mon Sep 17 00:00:00 2001 From: Alonso Torres Date: Mon, 6 Oct 2025 11:19:33 +0200 Subject: [PATCH] :bug: Fix problem with text in plugins (#7446) --- CHANGES.md | 4 ++++ frontend/src/app/plugins/api.cljs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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)