Embed element to be added to the design at the end of a drag 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.
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 type of element.
This must be "embed"
.
Video element or content to be added to the design at the end of a drag event.
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.
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 type of element.
This must be "video"
.
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 dimensions of the preview image.
Properties of previewSize
The type of element.
This must be "image"
.
The URL of an image to display under the user's cursor during the drag and drop event.
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 dimensions of the full-size image.
Properties of fullSize