Support paste file uploads
Summary: This is so freaking cool that I will try to implement it also on Facebook. Idea is from http://strd6.com/2011/09/html5-javascript-pasting-image-data-in-chrome/. I don't know how to properly detect support but lying about it is not a big deal. Test Plan: Go to revision comment textarea. Paste some text data - works as usual. Paste some image data in Chrome - file is uploaded and a link to it is inserted. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1681
This commit is contained in:
@@ -285,6 +285,9 @@ You can embed an image by using braces to refer to it:
|
||||
In most interfaces, you can drag-and-drop an image from your computer into the
|
||||
text area to upload and reference it.
|
||||
|
||||
Some browsers (e.g. Chrome) support uploading an image data just by pasting them
|
||||
from clipboard into the text area.
|
||||
|
||||
You can set file display options like this:
|
||||
|
||||
{F123, layout=left, float, size=full}
|
||||
|
||||
Reference in New Issue
Block a user