Steps to reproduce
Drag a markdown note from file explorer into editor and see the drag action label
Expected result
Based on the source code, the expected result should be a action label “insert link”
with link
dropEffect (see the monkey-patched drag-n-drop effect of folder with underline)
Actual result
the custom drag action label is not applied and default dropEffect is used
Environment
debug info of picture in actual result:
SYSTEM INFO:
Obsidian version: v0.14.6
Installer version: v0.13.31
Operating system: Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 21.4.0
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Safe mode: off
Plugins installed: 0
Plugins enabled: 0
RECOMMENDATIONS:
none
Additional information
monkey-patching clipboardManager.handleDragOver
with event.preventDefault()
seems to fix it (see pic in expected result), code below: