Skip to content
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

A way to disable drag / drop images #187

Closed
BrainFeeder opened this issue Jan 23, 2014 · 3 comments
Closed

A way to disable drag / drop images #187

BrainFeeder opened this issue Jan 23, 2014 · 3 comments
Assignees
Milestone

Comments

@BrainFeeder
Copy link

I just discovered this wysiwyg editor and I implemented it in a project. I don't tend to use the editors image upload function in the near future.
I succeeded in removing the button from the toolbar, but when an image gets dragged for some reason, the editor shows the "Drag image here" message.

If the option to disable this functionality is allready in there somewhere, it should be added to the docs. If it is not implemented yet, it could be a nice enhancement.

As an addition I also noticed that the "Drag image here" message is not translated. The translation is in the locale file though: "dragImageHere: 'Sleep hier een afbeelding naar toe',"

@ghost ghost assigned hackerwins Jan 24, 2014
hackerwins added a commit that referenced this issue Jan 26, 2014
@anton164
Copy link

@hackerwins just a headsup, the option is still not in the docs, this commit was the way I found it.

@smockensturm
Copy link

Not a big fan of the undocumented disableDragAndDrop: true option as this has the undesirable affect of disabling DnD for the entire document.

As we're not using Summernote at all to upload images, we have hidden the dropzone element with CSS thusly

.note-editor .note-dropzone { opacity: 0 !important; }

simonengelhardt added a commit to GeoMakers/geomakers.org that referenced this issue Mar 31, 2015
It will still actually work, which is ok, but the user won't think to use it
see summernote/summernote#187 (comment)
@lijinlar
Copy link

@smockensturm Thanks man.. that solved my issue, I was pulling my hair out all the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants