The Insert module ( https://drupal.org/project/insert ) adds links to image fields to insert the uploaded images into content.
By implementing hook_insert_widgets() it also works with the Drag & Drop Upload widget.. patch will follow
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | dnd_insert_integration-2261153-10.patch | 2.62 KB | rv0 |
| #1 | dnd_insert_integration-2261153-1.patch | 1.36 KB | rv0 |
Comments
Comment #1
rv0 commentedTo test, enable insert for the field. an insert button should appear in the rows of uploaded images.
Comment #3
webevt commentedHi, rv0!
Really, Insert module is a great module to integrate with. Thank you for your contribution!
Regards
Comment #4
webevt commentedComment #6
amccaugh commentedThe patch works great for the Image field--but unfortunately it still doesn't apply to File fields. Can anyone help with this?
Comment #7
rv0 commentedProbably an easy fix, try adding following code to dragndrop_upload_file.module (without the
<?php ?>tags):Not tested, but I guess it's something like that ;)
Comment #8
amccaugh commentedThank you! It worked perfectly.
For reference, I pasted the code rv0 provided to the bottom of the text file
/sites/all/modules/dragndrop_upload/modules/dragndrop_upload_file/dragndrop_upload_file.module
then I cleared the cache, ran cron, and disabled/reenabled the "Drag & Drop Upload: File field widget" module
Comment #9
rv0 commentedGreat to hear :)
I think clearing the cache is more than enough.
I'm not on my development computer, so someone else will have to roll a patch
Comment #10
rv0 commentedHere's #7 in a patch.
This adds integration with file uploads (previous patch was images only)
The patch also corrects some whitespace issues in the file, my editor does this by default, I suggest the maintainers also configure their editor to do the same ;)
Comment #12
webevt commentedHi
Successfully committed the patch. Thank you for your contribution, rv0!
Regards
Comment #14
rv0 commentedWould be nice to roll a new release :)