enhance: jump to edit the first block when creating a new page

This commit is contained in:
Tienson Qin
2021-05-08 19:57:44 +08:00
parent 8b1e548658
commit 7a78e805fd
3 changed files with 29 additions and 24 deletions

View File

@@ -225,9 +225,8 @@
(subs content 0 pos))
content (text/remove-built-in-properties! (:block/format block)
content)]
(do
(clear-selection! nil)
(state/set-editing! edit-input-id content block text-range move-cursor?)))))))
(clear-selection! nil)
(state/set-editing! edit-input-id content block text-range move-cursor?))))))
(defn edit-last-block-for-new-page!
[last-block pos]