fix: internal blocks paste

This commit is contained in:
Tienson Qin
2023-03-29 00:29:38 +08:00
committed by Andelf
parent 07a3adcb52
commit bc635eaf4b
9 changed files with 108 additions and 91 deletions

View File

@@ -213,8 +213,8 @@
[highlight ^js viewer]
(when-let [ref-block (ensure-ref-block! (state/get-current-pdf) highlight)]
(util/copy-to-clipboard!
(block-ref/->block-ref (:block/uuid ref-block)) nil
(pdf-windows/resolve-own-window viewer))))
(block-ref/->block-ref (:block/uuid ref-block))
:owner-window (pdf-windows/resolve-own-window viewer))))
(defn open-block-ref!
[block]