fix: DEL lost editor state

This commit is contained in:
Tienson Qin
2024-06-06 16:44:00 +08:00
parent 9e5a002cf8
commit 2b17284f77
4 changed files with 46 additions and 60 deletions

View File

@@ -177,7 +177,7 @@
(when block
(state/clear-edit!)
(let [container-id (or container-id
@(:editor/container-id @state/state)
(state/get-current-editor-container-id)
:unknown-container)]
(state/set-editing! (str "edit-block-" (:block/uuid block)) content block text-range {:container-id container-id}))
(mark-last-input-time! repo)))