openLink
Open a user-provided link in a new window, following getLinkOpenPolicy. Links that need confirming emit a confirm-open-link event, which the default UI answers with a dialog. With no listener for that event (for example with hideUi), those links are not opened. To handle them yourself, add a listener that asks the user and calls openWindow(url, '_blank') if they agree.
function openLink(editor: Editor, url: string): void;Parameters
| Name | Description |
|---|---|
| |
| |
Returns
void;Prev
onDragFromToolbarToCreateShapeNext
parseTldrawJsonFile