0

If I select with the mouse contents from any web page, copy them to the clipboard and then paste them on an email editor (e.g., Gmail) I get all sort of rich contents copied, like styles, images, etc.

I would like to do the same kind of rich content selection, but with javascript.

More specifically, I would like to select with javascript all contents inside a divin a web page I own, so that the user just has to press Ctrl+C and then paste the contents on an email editor.

Is there a way to do that? How?

Mike
  • 1,296
  • 2
  • 15
  • 40
  • 1
    Is it what you want? http://stackoverflow.com/questions/16616325/copy-html-table-in-rich-text-on-click – Aray Karjauv Apr 17 '14 at 10:30
  • 1
    Yes, that's basically what I wanted, and here's how to do it: http://jsfiddle.net/Mike238748/LJ74r/3/ thanks! – Mike Apr 17 '14 at 13:51
  • @Mike, it's better to answer your own question, if the problem is solved. – rpax Jun 02 '14 at 17:54

0 Answers0