-
-
Notifications
You must be signed in to change notification settings - Fork 163
New 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
Added disableImageUpload to imagePlugin #537
Conversation
This makes sense, I will review and merge in a few days |
@rissois Thank you - your idea is right, but I don't think we need an additional parameter. Not having an upload handler should be enough to disable the upload button and the D & D from the drag start. I've published a fix for this in v3.9.1. Let me know if this resolves the problem for you. |
@petyosi Thanks! That makes a lot of sense, I just wasn't sure the implications of them being mutually exclusive. Unfortunately, the fix seems to have created a few bugs:
|
@rissois thank you - some of those things should be a matter of configuration that's not related to the upload handler - to be more specific, some sort of a validation of which images can be accepted. I will review what you've described at some point, but things are fairly busy on my side, so if you have the capacity, I'm happy to accept a PR on the matters. |
Configuration flag for
imagePlugin
to disable image upload. Ideal for projects that are not self-hosting images.NOTE: One further improvement to this PR would be to eliminate the
dropEffect
when an outside image is brought onto the page.