new Embed(attributes)
wp.media.controller.Embed
A state for embedding media from a URL.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attributes |
object | The attributes hash passed to the state.
Properties
|
- Source:
Extends
- wp.media.controller.State
- Backbone.Model
Methods
-
<private> [undefined]()
-
- Inherited From:
- Source:
-
<private> _deactivate()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _menu()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _postActivate()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _preActivate()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _ready()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _renderMenu(view)
-
Create a view in the media menu for the state.
Parameters:
Name Type Description view
media.view.Menu The menu view. - Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _renderTitle()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _router()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _title()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<private> _updateMenu()
-
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<abstract> activate()
-
Activate event callback.
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
constructor()
-
Constructor.
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<abstract> deactivate()
-
Deactivate event callback.
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<abstract> ready()
-
Ready event callback.
- Since:
-
- 3.5.0
- Inherited From:
- Source:
-
<abstract> reset()
-
Reset event callback.
- Since:
-
- 3.5.0
- Inherited From:
- Overrides:
- Source:
-
scan()
-
Trigger a scan of the embedded URL's content for metadata required to embed.
- Source:
Fires:
- wp.media.controller.Embed#event:scan
-
scanImage(attributes)
-
Try scanning the embed as an image to discover its dimensions.
Parameters:
Name Type Description attributes
Object - Source: