Drag and drop note into cm6 editor always show default style with no custom actions

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


debug info of picture in actual result:

    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


Additional information

monkey-patching clipboardManager.handleDragOver with event.preventDefault() seems to fix it (see pic in expected result), code below:

will be fixed 0.14.7 0.14.8

1 Like

Maybe you mean upcoming 0.14.8? Doesn’t seem to be fixed in 0.14.7

yes 14.8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.