> ## Documentation Index
> Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt
> Use this file to discover all available pages before exploring further.
# ui.startDragToCursor
API reference for the ui.startDragToCursor method.
Adds the specified element or content to responsive pages, which slot things into a text stream at the end of a drag event.
## Parameters
A drag start event.
Properties of event>}>
Element or content to be added to the design at the end of the drag event.
Embed element to be added to the design at the end of a drag event.
The type of element.
The only valid value is `"embed"`.
The dimensions of the preview image.
Properties of previewSize>}>
A width, in pixels.
A height, in pixels.
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.
The only valid value is `"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>}>
A width, in pixels.
A height, in pixels.
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>}>
A width, in pixels.
A height, in pixels.
Image element or content to be added to the design at the end of a drag event.
The type of element.
The only valid value is `"image"`.
The dimensions of the preview image.
Properties of previewSize>}>
A width, in pixels.
A height, in pixels.
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>}>
A width, in pixels.
A height, in pixels.
## Returns
`Promise`
## Permissions
To use this method, the `canva:design:content:write` permission must be enabled for the app. To learn more, see [Permissions](https://www.canva.dev/docs/apps/configuring-intents-permissions/).