Embed element to be added to the design at the end of a drag event.
The type of element.
This must be "embed"
.
The dimensions of the preview image.
Properties of previewSize
The URL of an image to display under the user's cursor during the drag and drop event.
The URL of media that can be embedded, such as the URL of a YouTube video.
This URL must be supported by the Iframely API.
Video element or content to be added to the design at the end of a drag event.
The type of element.
This must be "video"
.
A function that returns a reference (ref) to a video asset in Canva's backend.
Returns
A Promise
that resolves with the following object:
A unique identifier that references a video asset in Canva's backend.
The dimensions of the preview image.
Properties of previewSize
The URL of an image to display under the user's cursor during the drag and drop event.
The dimensions of the full-size video.
- These dimensions are used when adding the video to the design
- If omitted, the
previewSize
dimensions are used as a fallback.
Properties of fullSize
Image element or content to be added to the design at the end of a drag event.
The type of element.
This must be "image"
.
The dimensions of the preview image.
Properties of previewSize
A function that returns a reference (ref) to an audio asset in Canva's backend.
Returns
A Promise
that resolves with the following object:
A unique identifier that references an image asset in Canva's backend.
The URL of an image to display under the user's cursor during the drag and drop event.
The dimensions of the full-size image.
Properties of fullSize