Not complex, but essential to get right from day one. For videos, we even want the ability to re-encode videos with external plugins if available.
Must be abstracted in order to allow easier porting to other platforms.
The old editor has a pretty confined code snippet, that can be reused.
_Do not alter or remove anything below. The following sections will be managed by moderators only._
Implement the WP media manager backbone library, using media-utils
PoC.
A new source taxonomy will be added to attachment post type and a term of stories will be added to every attachment that is uploaded. This term will be used to easily filter media later.
When trying to write up this ticket, I found it hard without explaining the background first. So I decided to write the background up a google doc. Please read this first, before continuing to read this comment.
In short I believe we should have 3 options.
Pros
Cons
Pro
Con
Pros
Cons
I would recommend option 2, as it stays in the WordPress interface. It also makes media uploading a core problem. Media uploader, can be hard and errorful on shared hosting.
Tagging @pbakaus for feedback.
@spacedmonkey yes, let's go with option 2 for the upload button. But independent of that, we do need to support drag & drop onto the main Canvas area, as well as the general media gallery area. I'm presuming that will have to use a variation of 1?
Tagging @pbakaus @miina @barklund for review.
I have broken the drag and drop media upload functionality into an ticket, as it is a different piece of work.
LGTM.
As the work is basically done in ampproject/amp-wp#3843 I have made the estimation for everyone. I am moving this ticket to code review.
If I am not mistaken this is still missing the hidden taxonomy part?
This functionality hasn’t been written yet. This is a more advanced feature that can wait.
One issue about the current implementation is that the backbone media dialog doesn’t have an easy to use / find callback when a media object is uploaded. This may result in us having to use the other media upload option listed above.
@spacedmonkey can we please look into making/proposing modifications in core for these. The callback and the "open media dialog and jump directly to this item" functionality seem crucial and hopefully not controversial.
Also, what should we do with this ticket? I'd rather not leave it hanging – if necessary, close this one and create a new dedicated one. Thanks!
Marking a image as selected will also be need for the featured image. I will update this ticket once that research as born out.
I have created a new ticket for the discovery ticket which is a placeholder for now. I am going to close this ticket out.