Class: EditImage

wp.media.controller. EditImage


new EditImage(attributes)

wp.media.controller.EditImage A state for editing (cropping, etc.) an image.
Parameters:
Name Type Description
attributes object The attributes hash passed to the state.
Properties
Name Type Argument Default Description
model wp.media.model.Attachment The attachment.
id string <optional>
edit-image Unique identifier.
title string <optional>
Edit Image Title for the state. Displays in the media menu and the frame's title region.
content string <optional>
edit-image Initial mode for the content region.
toolbar string <optional>
edit-image Initial mode for the toolbar region.
menu string <optional>
false Initial mode for the menu region.
url string <optional>
Unused. @todo Consider removal.
Source:

Extends

Methods


activate()

Since:
  • 3.9.0
Overrides:
Source:

constructor()

Constructor.
Since:
  • 3.5.0
Inherited From:
Source:

deactivate()

Since:
  • 3.9.0
Overrides:
Source:

<abstract> ready()

Ready event callback.
Since:
  • 3.5.0
Inherited From:
Source:

<abstract> reset()

Reset event callback.
Since:
  • 3.5.0
Inherited From:
Source:

toolbar()

Since:
  • 3.9.0
Source: