[wp-trac] [WordPress Trac] #35827: Customizer: Create a dropzone for adding images
WordPress Trac
noreply at wordpress.org
Thu Apr 28 06:44:44 UTC 2016
#35827: Customizer: Create a dropzone for adding images
-------------------------+-----------------------------
Reporter: melchoyce | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: ui, javascript
-------------------------+-----------------------------
Changes (by celloexpressions):
* focuses: ui => ui, javascript
Comment:
Starting to investigate, this isn't trivial to implement and there are
some UX issues to think about. I think we should treat it as a somewhat
hidden progressive enhancement - if you drag an image in and you can
upload it'll open the media modal and let you go through the process, but
we can't cleanly display upload or permissions errors here.
I'm attempting to adapt the code from the media library. I started with
`tmpl-uploader-inline` in `wp-includes/media-template.php`, but working
through it I don't think we should add any of that markup, only the JS
should work (keeping the UI simple). I'm also looking at the
`UploaderWindow` view in `wp-includes/js/media-views.js`. Need to
investigate `wp.Uploader` next; work in progress patch is uploaded (if
anyone else wants to iterate, please do so, otherwise I'll revisit likely
in a couple weeks).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35827#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list