zsviczian / obsidian-excalidraw-plugin Public
forked from dhruvik7/obsidian-daily-statsNew issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Drag and Drop Images #304
Comments
|
I was able to reproduce the issue. I am in the middle of some changes with Excalidraw... which means it will take a couple of days before I am able to release a fix for this. Thanks for raising the issue! |
|
Fixed with: excalidraw/excalidraw#4445 waiting for deployment |
|
fixed in 1.5.4 |
|
Thanks for such a fast turnaround fix for the bug! Awesome work! |
|
@zsviczian This is happening for me again in the latest version. I can't drag-n-drop any image or drawing from file explorer using CMD + drop (MacOS). If I type Desktop (please complete the following information): OS: macOS Monterey |
|
Did it work before 1.6.5? |
I've tried it with other plugins turned off.
I don't remember, I think I haven't tried it in previous versions. Do you want me to test it in older version? |
|
Just to confirm, when all the plugins were off, you still weren't able to drag and drop. Regarding your previous comment: Does the command palette action: |
Yes, that is correct. I'm attaching a screen recording here: https://imgur.com/a/v513raG
I didn't know this, thank you.
This actually works for both images and drawings. |
|
I am starting to run out of ideas... we may end up having to do a short zoom call over the weekend. Does drag&drop work in other parts of Obsidian? e.g. dropping a file from file explorer into a markdown document? |
|
Thanks for your help, by the way! I'll try it once more with clean Obsidian installation and blank Vault. Just to be sure that I'm testing it correctly: I should be able to drag&drop both Excalidraw drawings and supported image files (e.g. jpg, png) while holding
It works in markdown documents - dropping another md file inserts a wikilink and dropping of an image embeds it with |
|
@miluoshi, I wanted to follow up on your issue. Let me know if you need any help with the debug instructions from 3 days ago. |
|
@zsviczian sorry, I was busy in last days. I've tried it with blank Vault. On drop without CMD, the It seems like either Obsidian, or maybe some system settings prevent drop event while holding CMD. I'll try it once more with new MacOS user. EDIT: The same behaviour is on a new MacOS user so I don't think it is influenced by something outside Obsidian. |
|
I found this in Discord:
That would explain why drop didn't work for me at all with cmd modifier key. Maybe dropping images/drawings into canvas never worked for Obsidian in Macos... |
|
So we have two options. I can change CMD to SHIFT, then it will be shift drag. Before I implement the SHIFT option, it would be great if you could do the testing explained above. Please do the testing 3 times. Holding in one case the SHIFT, in the other the CTRL, and finally the CMD button. Please send me the 3 result screenshots from developer console. |
|
Here are payloads for CTRL+drop and SHIFT+drop. For CMD and ALT modifier keys there is no event received. In order to be able to use CTRL modifier key, it has to be pushed after Using SHIFT to insert images would be great solution. |






Describe the bug
The Excalidraw plugin prevents the native drag-n-drop functionality of images into Obsidian. However, drag-n-drop into the excalidraw canvas works. This may be related to #283
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The image should be automatically embedded into md file. If excalidraw is disabled drag-n-drop works as expected
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: