[wp-trac] [WordPress Trac] #21390: Upload/Insert media revamp
WordPress Trac
noreply at wordpress.org
Wed Nov 7 20:14:43 UTC 2012
#21390: Upload/Insert media revamp
----------------------------+--------------------------
Reporter: nacin | Owner: koopersmith
Type: task (blessed) | Status: accepted
Priority: high | Milestone: 3.5
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: |
----------------------------+--------------------------
Comment (by koopersmith):
In [changeset:"22437"]:
{{{
#!CommitTicketReference repository="" revision="22437"
Media: Integrate the gallery workflow with the media menu.
`wp.media.model.Query.more()`
* If a request has already been sent out for more attachments, return that
request object instead of creating another.
`wp.media.controller.Region`
* A region allows views to be swapped in and out of a section of the page
without either view having to know about the other.
* Application components can use the same callbacks and resources by
leveraging `Region.mode()`, which triggers a set of callbacks to create or
transform the current view, but only if necessary.
`wp.media.view.Frame`
* Leverage `Region` controllers instead of forcing states to swap view
objects, which causes states to fit more comfortably in the controller-
camp.
* Add `previous()`, a method to fetch the previous state `id`.
* Separate out the default settings over several objects (so blank frames
can be instantiated).
`wp.media.view.MediaFrame`
* The base `Frame` used for media management: handles integration with the
`Modal` and `UploaderWindow` views.
`wp.media.view.MediaFrame.Post`
* Includes all default media states and callbacks necessary for inserting
media into a post.
see #21390.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21390#comment:46>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list