mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
fix(pdf): update drag-and-drop data format to use double brackets
This commit is contained in:
@@ -257,7 +257,7 @@
|
||||
(when-let [^js dt (and id (.-dataTransfer e))]
|
||||
(reset! block/*dragging? true)
|
||||
(pdf-assets/ensure-ref-block! (state/get-current-pdf) hl nil)
|
||||
(.setData dt "text/plain" (str "((" id "))"))))]
|
||||
(.setData dt "text/plain" (str "[[" id "]]"))))]
|
||||
|
||||
[:div.extensions__pdf-hls-text-region
|
||||
{:id (str "hl_" id)
|
||||
@@ -291,7 +291,7 @@
|
||||
|
||||
dragstart-handle! (fn [^js e]
|
||||
(when-let [^js dt (and id (.-dataTransfer e))]
|
||||
(.setData dt "text/plain" (str "((" id "))"))))
|
||||
(.setData dt "text/plain" (str "[[" id "]]"))))
|
||||
update-hl! (fn [hl] (some-> (rum/deref *ops-ref) (:upd-hl!) (apply [hl])))]
|
||||
|
||||
(hooks/use-effect!
|
||||
|
||||
Reference in New Issue
Block a user