remove contenteditable as it introduces other issues

This commit is contained in:
Tienson Qin
2025-07-01 15:28:14 +08:00
parent d80a1261c5
commit 88ad410a9d
3 changed files with 2 additions and 20 deletions

View File

@@ -1226,9 +1226,7 @@ Similar to re-frame subscriptions"
(unselect-node node))
(doseq [id removed]
(doseq [node (dom/sel (util/format "[blockid='%s']" id))]
(unselect-node node))))
(doseq [node (dom/sel ".block-content[contenteditable=true]")]
(dom/set-attr! node "contenteditable" "false"))))
(unselect-node node))))))
(defn set-selection-blocks!
([blocks]
@@ -1252,9 +1250,7 @@ Similar to re-frame subscriptions"
(defn clear-selection!
[]
(dom-clear-selection!)
(state-clear-selection!)
(doseq [node (dom/sel ".block-content[contenteditable=false]")]
(dom/set-attr! node "contenteditable" "true")))
(state-clear-selection!))
(defn get-selection-start-block-or-first
[]