🐛 Fix text editor swap when WebGL render is enabled/disabled

This commit is contained in:
Elena Torró 2026-06-04 08:39:33 +02:00 committed by GitHub
parent 0fe4337359
commit dfa88a28fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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"