Public typealias

Called when the editor has mounted.

Example
;<Tldraw onMount={(editor) => editor.selectAll()} />
Signature
type TLOnMountHandler = (
  editor: Editor
) => (() => undefined | void) | undefined | void
Parameters
NameDescription

editor

The editor instance.

References

Editor

Source

packages/editor/src/lib/TldrawEditor.tsx

TLOnHandleDragHandlerTLOnResizeEndHandler