Reference > Admin > Website Builder > Editor
Editor
Page editor components
- What is exported from
webiny/admin/website-builder/page/editor? - How to import and use each exported item?
Overview
This page documents everything exported from webiny/admin/website-builder/page/editor. Import any of the items below directly from this path in your Webiny extensions.
Hooks
Other
Hooks
useActiveElement
Constant — imported from webiny/admin/website-builder/page/editor
useComponent
Constant — imported from webiny/admin/website-builder/page/editor
useCreateElement
Function — imported from webiny/admin/website-builder/page/editor
useDeleteElement
Function — imported from webiny/admin/website-builder/page/editor
useDocumentEditor
Function — imported from webiny/admin/website-builder/page/editor
useElementComponentManifest
Constant — imported from webiny/admin/website-builder/page/editor
useElementInputs
Function — imported from webiny/admin/website-builder/page/editor
Returns the resolved input values for the given element, plus an updater callback.
@param elementId The element whose inputs to resolve (null returns {}). @param depth How many levels of slot children to resolve (default 0).
useHighlightedElement
Constant — imported from webiny/admin/website-builder/page/editor
usePageEditorConfig
Constant — imported from webiny/admin/website-builder/page/editor
useSelectFromDocument
Function — imported from webiny/admin/website-builder/page/editor
Subscribe to part of the document state. @param selector Pick the slice of state you care about. @param equals (optional) comparator, defaults to Object.is
useSelectFromEditor
Function — imported from webiny/admin/website-builder/page/editor
Subscribe to part of the document state. @param selector Pick the slice of state you care about. @param equals (optional) comparator, defaults to Object.is
useUpdateElement
Function — imported from webiny/admin/website-builder/page/editor
Other
$addElementReferenceToParent
Function — imported from webiny/admin/website-builder/page/editor
$createElement
Function — imported from webiny/admin/website-builder/page/editor
$deleteElement
Function — imported from webiny/admin/website-builder/page/editor
$deselectElement
Function — imported from webiny/admin/website-builder/page/editor
$getActiveElementId
Function — imported from webiny/admin/website-builder/page/editor
$getComponentManifestByElementId
Function — imported from webiny/admin/website-builder/page/editor
$getElementById
Function — imported from webiny/admin/website-builder/page/editor
$getElementInputValues
Function — imported from webiny/admin/website-builder/page/editor
$getElementsOfType
Function — imported from webiny/admin/website-builder/page/editor
$getFirstElementOfType
Function — imported from webiny/admin/website-builder/page/editor
$highlightElement
Function — imported from webiny/admin/website-builder/page/editor
$moveElement
Function — imported from webiny/admin/website-builder/page/editor
$previewElementInputs
Function — imported from webiny/admin/website-builder/page/editor
Programmatically update an element’s inputs in the preview iframe only (via JSON patch). Does NOT write to the editor document state.
$removeElementReferenceFromParent
Function — imported from webiny/admin/website-builder/page/editor
$selectElement
Function — imported from webiny/admin/website-builder/page/editor
$updateElementInputs
Function — imported from webiny/admin/website-builder/page/editor
Programmatically update an element’s inputs using a callback-based API. The updater receives a deep object representation of the element’s inputs which can be mutated in place.
createCommand
Function — imported from webiny/admin/website-builder/page/editor
createElement
Constant — imported from webiny/admin/website-builder/page/editor
useElementOverlay
Export — imported from webiny/admin/website-builder/page/editor