Use org-download-dnd instead of inhouse dnd handler
Possibly fixes #3056
This commit is contained in:
parent
0f696ec8b3
commit
47571446b9
2 changed files with 1 additions and 13 deletions
|
@ -1,12 +0,0 @@
|
|||
;;; lang/org/autoload/contrib-dragndrop.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +dragndrop)
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-dragndrop-download-dnd-fn (uri action)
|
||||
"Handle file links and base64 data uris."
|
||||
(if (eq major-mode 'org-mode)
|
||||
(+org/attach-file-and-insert-link uri)
|
||||
(let ((dnd-protocol-alist
|
||||
(rassq-delete-all '+org-dragndrop-download-dnd-fn
|
||||
(copy-alist dnd-protocol-alist))))
|
||||
(dnd-handle-one-url nil action uri))))
|
Loading…
Add table
Add a link
Reference in a new issue