mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
fix: preserve uuid when paste text
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
text format
|
||||
{:page-name (:block/name (db/entity page-id))})
|
||||
blocks' (gp-block/with-parent-and-left page-id blocks)]
|
||||
(editor-handler/paste-blocks blocks' {}))))
|
||||
(editor-handler/paste-blocks blocks' {:keep-uuid? true}))))
|
||||
|
||||
(defn- paste-segmented-text
|
||||
[format text]
|
||||
@@ -221,6 +221,8 @@
|
||||
(let [clipboard-data (gobj/get e "clipboardData")
|
||||
html (.getData clipboard-data "text/html")
|
||||
text (.getData clipboard-data "text")]
|
||||
(prn {:html html
|
||||
:text text})
|
||||
(cond
|
||||
(and (string/blank? text) (string/blank? html))
|
||||
(paste-file-if-exists id e)
|
||||
|
||||
Reference in New Issue
Block a user