In Gmail, you can upload an embedded image to a new message / response window by simply dragging the image from the local file browser (not the URL) or pasting the copied image into it.
Is there an easy way to add this functionality to the TinyMCE editor? If not, any ideas on how this can be done in the best and / or easiest way?
Additional information / needs:
- A certain “dropout zone" is unusable because the dropped / pasted image should be displayed exactly where the user inserts / inserts it into the TinyMCE window (that is, between two paragraphs of text).
- Processing or resizing an image during or after uploading, i.e. Max. 500 KB is preferred.
- For the same reason as above, and for simple reasons - the user should not have any dialogs, just like Gmail is just starting to load an image, no questions were asked.
- Any images dropped / pasted into TinyMCE must be stored in Amazon Simple Storage Service (S3). Text from Tiny will be stored in our database. Saving the inserted image (s) in the database instead of Amazon S3 may be an option (using Heroku with PostgreSQL).
- The text and image (s) - in the correct order / context - should be presented to the user again at a later timer, so when you discard / insert the image or save the TinyMCE form, placeholder or similar with the image information should be recorded in TinyMCE so that we They knew which image and where in the text will be displayed when we need to get it sometime in the future.
- The site uses Rails 3.1.3, which will soon be updated to 3.2.
- HTML5 is okay i.e. HTML4 compatibility is not important.
Thank you very much!: -)
PS. I googled + looked at similar issues here in SO without finding the right solution.
source
share