SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    0 Post(s)
    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.?


  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    448 Post(s)
    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.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


Posting Permissions

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