Editor API Overview
The editor API provides access to the editor context and selectors for deriving state.
Use the following hooks to access the editor from within your components.
useEditor
Access the editor context. Commonly used when building toolbars or passing context to selectors.
useEditorSelector
Access selectors in areas where the context is unavailable by combining with useEditor
.