TLOnMountHandler
Public typealias
Called when the editor has mounted.
Example
;<Tldraw onMount={(editor) => editor.selectAll()} />
Signature
type TLOnMountHandler = (
editor: Editor
) => (() => undefined | void) | undefined | void
Parameters
Name | Description |
---|---|
| The editor instance. |
References
Source