EditorSelection
What `useEditor` hands an island author: the selection scoped to the island's own section instance.
What useEditor hands an island author: the selection scoped to the island’s
own section instance. Instance identity is resolved by the runtime and never
exposed; a selection in any other section instance reads as null.
Import from @homepages/template-kit or @homepages/template-kit/island-runtime.
Signature
Section titled “Signature”export type EditorSelection = { kind: "section";} | { kind: "slot"; slotId: string; itemIndex?: number; fieldName?: string;};See also
Section titled “See also”deserializeIslandPropsislandIdserializeIslandPropsATTR_ISLAND_FRAMELESSATTR_ISLAND_IDATTR_ISLAND_KEYATTR_ISLAND_PROPSEDITOR_BRIDGE_PROPEDITOR_BRIDGE_PROTOCOLISLAND_CAPTURE_HOLDS_GLOBALISLAND_ELEMENTIslandPropsErrorEditorBridgeIslandEditorIslandModuleEditorBridgeSelectionIslandComponentIslandEditorOptionsIslandPropsIslandServerFrame