fix: show editor commands bar iff in the editing mode

This commit is contained in:
Tienson Qin
2025-06-06 12:54:07 +08:00
parent 96869d8cfa
commit 07e91b1193
3 changed files with 5 additions and 6 deletions

View File

@@ -156,7 +156,7 @@
:editor/action-data nil
;; With label or other data
:editor/last-saved-cursor (atom {})
:editor/editing? (atom {})
:editor/editing? (atom nil)
:editor/in-composition? false
:editor/content (atom {})
:editor/block (atom nil)
@@ -1387,7 +1387,7 @@ Similar to re-frame subscriptions"
:or {clear-editing-block? true}}]
(clear-editor-action!)
(when clear-editing-block?
(set-state! :editor/editing? {})
(set-state! :editor/editing? nil)
(set-state! :editor/block nil))
(set-state! :editor/start-pos nil)
(clear-editor-last-pos!)