mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
feat: add paste-text-in-one-block-at-point (mod+shift+v)
This commit is contained in:
@@ -3029,3 +3029,12 @@
|
||||
block-content-without-prop
|
||||
(subs current-block-content end))]
|
||||
(state/set-block-content-and-last-pos! input block-content* 1)))))))))
|
||||
|
||||
|
||||
(defn paste-text-in-one-block-at-point
|
||||
[]
|
||||
(.then
|
||||
(js/navigator.clipboard.readText)
|
||||
(fn [clipboard-data]
|
||||
(when-let [_ (state/get-input)]
|
||||
(state/append-current-edit-content! clipboard-data)))))
|
||||
|
||||
Reference in New Issue
Block a user