Namespace: editor

wp.media. editor

Namespaces

send

Methods


<static> add(id [, options])

Setup 'workflow' and add to the 'workflows' cache. 'open' can subsequently be called upon it.
This:
Parameters:
Name Type Argument Default Description
id string A slug used to identify the workflow.
options Object <optional>
{}
Source:
Returns:
A media workflow.
Type
wp.media.view.MediaFrame.Select

<static> get(id)

Return the workflow specified by id
This:
Parameters:
Name Type Description
id string A slug used to identify the workflow.
Source:
Returns:
A media workflow.
Type
wp.media.view.MediaFrame

<static> id( [id])

Determines the proper current workflow id
Parameters:
Name Type Argument Default Description
id string <optional>
'' A slug used to identify the workflow.
Source:
Returns:
Type
wpActiveEditor | string | tinymce.activeEditor.id

<static> init()

Bind click event for .insert-media using event delegation
Source:

<static> insert(html)

Send content to the editor
Parameters:
Name Type Description
html string Content to send to the editor
Source:

<static> open( [id] [, options])

Open a workflow
This:
Parameters:
Name Type Argument Default Description
id string <optional>
Optional. A slug used to identify the workflow.
options Object <optional>
{}
Source:
Returns:
Type
wp.media.view.MediaFrame

<static> remove(id)

Remove the workflow represented by id from the workflow cache
This:
Parameters:
Name Type Description
id string A slug used to identify the workflow.
Source: