mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Fix text editor swap when WebGL render is enabled/disabled
This commit is contained in:
parent
0fe4337359
commit
dfa88a28fd
@ -63,7 +63,7 @@
|
|||||||
;; Ensure it's always enabled whenever render-wasm/v1 is active.
|
;; Ensure it's always enabled whenever render-wasm/v1 is active.
|
||||||
(if (contains? features "render-wasm/v1")
|
(if (contains? features "render-wasm/v1")
|
||||||
(conj features "text-editor/v2")
|
(conj features "text-editor/v2")
|
||||||
(disj features "text-editor/v2"))))
|
(disj features "text-editor/v2" "text-editor-wasm/v1"))))
|
||||||
|
|
||||||
(defn get-enabled-features
|
(defn get-enabled-features
|
||||||
"An explicit lookup of enabled features for the current team"
|
"An explicit lookup of enabled features for the current team"
|
||||||
|
|||||||
@ -14,7 +14,8 @@
|
|||||||
(defn dom->cljs
|
(defn dom->cljs
|
||||||
"Gets the editor content from a DOM structure"
|
"Gets the editor content from a DOM structure"
|
||||||
[root]
|
[root]
|
||||||
(fd/create-root root))
|
(when (some? root)
|
||||||
|
(fd/create-root root)))
|
||||||
|
|
||||||
(defn cljs->dom
|
(defn cljs->dom
|
||||||
"Sets the editor content from a CLJS structure"
|
"Sets the editor content from a CLJS structure"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user