From 8d0d1f5c7c93293fa7ea10c6026e07a1aa01fc4e Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 5 Apr 2026 18:16:55 +0800 Subject: [PATCH] fix: insert block above --- src/main/frontend/handler/editor.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/frontend/handler/editor.cljs b/src/main/frontend/handler/editor.cljs index b0cac2b42f..39ef078fdd 100644 --- a/src/main/frontend/handler/editor.cljs +++ b/src/main/frontend/handler/editor.cljs @@ -488,6 +488,7 @@ selection-end (util/get-selection-end input) [fst-block-text snd-block-text] (compute-fst-snd-block-text value selection-start selection-end) insert-above? (and (string/blank? fst-block-text) (not (string/blank? snd-block-text))) + right-sibling (if insert-above? block right-sibling) block' (or (db/entity [:block/uuid block-id]) block) original-block (:original-block config) block'' (or