mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
Merge remote-tracking branch 'upstream/master' into more-pasting-issues
This commit is contained in:
@@ -71,12 +71,13 @@
|
||||
|
||||
(defn- get-whiteboard-shape-refs-text
|
||||
[text]
|
||||
(when-let [tldr (get-whiteboard-tldr-from-text text)]
|
||||
(->> (gobj/get tldr "shapes")
|
||||
(mapv (fn [shape]
|
||||
(let [shape-id (gobj/get shape "id")]
|
||||
(block-ref/->block-ref shape-id))))
|
||||
(string/join "\n"))))
|
||||
(let [tldr (get-whiteboard-tldr-from-text text)]
|
||||
(when (and tldr (object? tldr))
|
||||
(->> (gobj/get tldr "shapes")
|
||||
(mapv (fn [shape]
|
||||
(let [shape-id (gobj/get shape "id")]
|
||||
(block-ref/->block-ref shape-id))))
|
||||
(string/join "\n")))))
|
||||
|
||||
(defn- paste-copied-blocks-or-text
|
||||
;; todo: logseq/whiteboard-shapes is now text/html
|
||||
|
||||
Reference in New Issue
Block a user