Namespace: send

wp.media.editor. send

Methods


<static> attachment(props, attachment)

Called when sending an attachment to the editor from the medial modal.
Parameters:
Name Type Description
props Object Attachment details (align, link, size, etc).
attachment Object The attachment object, media version of Post.
Source:
Returns:
Type
Promise

Called when 'Insert From URL' source is not an image. Example: YouTube url.
Parameters:
Name Type Description
embed Object
Source:
Returns:
Type
Promise