Is there a plugin to insert (load) a smooth drag / drop or similar for TinyMCE?

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.

+5
source share
3 answers

plupload , , html4, , flash silverlight html5. ? Amazon S3. !

+2
+1

, . base64:

<img alt="" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQ..

which, I think, is fine, but with 4-5 photos of a reasonable size looking at the message, it caused the server to load to go to insane levels. http takes up 100%, etc., it closed us if more than one or two people were viewing the message. The funny thing is that they are well displayed in the editor - this is when you save and publish, when the pain strikes. Not quite sure why this shock apache displays the message so much (when in the editor it looked great)

0
source

All Articles