TLOnMountHandler
See source codeCalled when the editor has mounted.
type TLOnMountHandler = (
editor: Editor
) => (() => undefined | void) | undefined | voidExample
<Tldraw onMount={(editor) => editor.selectAll()} />Parameters
| Name | Description |
|---|---|
| The editor instance. |
Prev
TLKeyboardEventNameNext
TLPinchEvent