tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > useOptionalComponentEditor

useOptionalComponentEditor variable

Provides access to Component Editor data and methods, if available. undefined is returned when used outside of Component Editor.

Signature:

useOptionalComponentEditor: OptionalComponentEditorHook;