Class: Post

wp.media.view.MediaFrame. Post


new Post()

wp.media.view.MediaFrame.Post The frame for manipulating media on the Edit Post page.
Mixes In:
Source:

Extends

Methods


_createModes()

A frame can be in a mode or multiple modes at one time. For example, the manage media frame can be in the `Bulk Select` or `Edit` mode.
Inherited From:
Overrides:
Source:

_createStates()

Create the frame's states.
Inherited From:
Overrides:
Source:
See:
Fires:
  • wp.media.controller.State#event:ready

activateMode(string)

Activate a mode on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
this

attach()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.MediaFrame

bindHandlers()

Bind region mode event callbacks.
Inherited From:
Overrides:
Source:
See:
  • media.controller.Region.render

browseContent(contentRegion)

Render callback for the content region in the `browse` mode.
Parameters:
Name Type Description
contentRegion wp.media.controller.Region
Inherited From:
Source:

browseRouter(routerView)

Render callback for the router region in the `browse` mode.
Parameters:
Name Type Description
routerView wp.media.view.Router
Inherited From:
Source:

close()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.MediaFrame

createIframeStates(options)

Parameters:
Name Type Description
options Object
Inherited From:
Overrides:
Source:

createMenu(menu)

This:
Parameters:
Name Type Description
menu Object
Inherited From:
Overrides:
Source:

createRouter(router)

This:
Parameters:
Name Type Description
router Object
Inherited From:
Overrides:
Source:

createSelection()

Attach a selection collection to the frame. A selection is a collection of attachments used for a specific purpose by a media frame. e.g. Selecting an attachment (or many) to insert into post content.
Inherited From:
Source:
See:
  • media.model.Selection

createSelectToolbar(toolbar [, options])

Toolbars
This:
Parameters:
Name Type Argument Default Description
toolbar Object
options Object <optional>
{}
Inherited From:
Source:

createStates()

Create the default states.
Overrides:
Source:

createTitle(title)

This:
Parameters:
Name Type Description
title Object
Inherited From:
Overrides:
Source:

createToolbar(toolbar)

This:
Parameters:
Name Type Description
toolbar Object
Inherited From:
Overrides:
Source:

deactivateMode(string)

Deactivate a mode on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
this

detach()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.MediaFrame

dispose()

Inherited From:
Overrides:
Source:
To Do:
  • The internal comment mentions this might have been a stop-gap before Backbone 0.9.8 came out. Figure out if Backbone core takes care of this in Backbone.View now.
Returns:
Returns itself to allow chaining
Type
wp.media.View

escape()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.MediaFrame

galleryMenu(view)

Parameters:
Name Type Description
view wp.Backbone.View
Source:

iframeContent(content)

This:
Parameters:
Name Type Description
content Object
Inherited From:
Overrides:
Source:

isModeActive(string)

Check if a mode is enabled on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
bool

mainGalleryToolbar(view)

Parameters:
Name Type Description
view wp.Backbone.View
Source:

mainInsertToolbar(view)

Parameters:
Name Type Description
view wp.Backbone.View
Source:

Parameters:
Name Type Description
view wp.Backbone.View
Source:

open()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.MediaFrame

remove()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.View

render()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.MediaFrame

reset()

Reset all states on the frame to their defaults.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.Frame

selectionStatusToolbar(view)

Parameters:
Name Type Description
view wp.Backbone.View
Source:

triggerModeEvents()

Map activeMode collection events to the frame.
Inherited From:
Overrides:
Source:

uploadContent()

Render callback for the content region in the `upload` mode.
Inherited From:
Source:

Events


{mode}:deactivate

Frame mode deactivation event.
Inherited From:
Overrides:
Source: