Skip to content

EditorMountHook

Since v1.4.0

Hook called when an editor host is mounted. Returning a function registers a teardown that runs when the editor is released.

type EditorMountHook = (ctx: { container: HTMLElement; gridEl: HTMLElement }) => () => void | void