mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 05:11:39 +02:00
fix(frontend): add render-to-html function
This commit is contained in:
parent
b428d1dc23
commit
ea1bfd5eaa
3 changed files with 10 additions and 4 deletions
|
@ -142,7 +142,7 @@
|
|||
[own]
|
||||
(let [[shape] (:rum/args own)
|
||||
dom (mx/ref-node own "fobject")
|
||||
html (mx/render-static-html (text-shape-html shape))]
|
||||
html (dom/render-to-html (text-shape-html shape))]
|
||||
(set! (.-innerHTML dom) html))
|
||||
own)
|
||||
|
||||
|
@ -152,7 +152,7 @@
|
|||
[shape] (:rum/args own)]
|
||||
(when (not= shape old-shape)
|
||||
(let [dom (mx/ref-node own "fobject")
|
||||
html (mx/render-static-html (text-shape-html shape))]
|
||||
html (dom/render-to-html (text-shape-html shape))]
|
||||
(set! (.-innerHTML dom) html)))
|
||||
own))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue