mirror of
https://github.com/penpot/penpot.git
synced 2026-06-09 17:02:05 +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.
|
||||
(if (contains? features "render-wasm/v1")
|
||||
(conj features "text-editor/v2")
|
||||
(disj features "text-editor/v2"))))
|
||||
(disj features "text-editor/v2" "text-editor-wasm/v1"))))
|
||||
|
||||
(defn get-enabled-features
|
||||
"An explicit lookup of enabled features for the current team"
|
||||
|
||||
@ -14,7 +14,8 @@
|
||||
(defn dom->cljs
|
||||
"Gets the editor content from a DOM structure"
|
||||
[root]
|
||||
(fd/create-root root))
|
||||
(when (some? root)
|
||||
(fd/create-root root)))
|
||||
|
||||
(defn cljs->dom
|
||||
"Sets the editor content from a CLJS structure"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user