Explorar el Código

fix(pdf): update drag-and-drop data format to use double brackets

charlie hace 1 semana
padre
commit
4f54340115
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/main/frontend/extensions/pdf/core.cljs

+ 2 - 2
src/main/frontend/extensions/pdf/core.cljs

@@ -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!