Skip to content

EditorMountHook

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

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