SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HOW? Gmail Paste Image From Clipboard Functionality

    How does gmail have the ability to paste images into the body of email messages? I am assuming it is not a generic texteara , is this a special field or are they using javascript tomfoolery.?

    James

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,293
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    I believe they are using the new Drag and Drop API. Along with HTML5 have come a lot of new browser APIs, which have varying support across browsers at this stage. You need JS to access these browser capabilities.

    EDIT: actually, I'm not sure about pasting as such. I was thinking more of the ability to drag an image from your desktop straight into a GMail message, which is pretty cool.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •