Browse Source

fix: backspace will remove the whole block when timestamps enabled

Tienson Qin 4 years ago
parent
commit
b38d0f8b65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
src/main/frontend/handler/editor.cljs

@@ -829,7 +829,7 @@
                      (when-let [sibling-block-id (dom/attr sibling-block "blockid")]
                        (when-let [block (db/pull repo '[*] [:block/uuid (uuid sibling-block-id)])]
                          (let [original-content (util/trim-safe (:block/content block))
-                               new-value (str original-content " " (string/triml value))
+                               new-value (str (property/remove-built-in-properties format original-content) " " (string/triml value))
                                tail-len (count (string/triml value))
                                pos (max
                                     (if original-content