useToolbarSchema
useToolbarSchema(
props):ToolbarSchema
Defined in: toolbar/src/use-toolbar-schema.ts:74
Resolve the editor’s full toolbar schema. Returns the union of every decorator, annotation, list, style, block object and inline object declared anywhere in the editor’s schema graph that is reachable from a position where text is edited - the root schema merged with the sub-schema of every registered container whose field accepts text blocks. Useful for rendering a static toolbar whose buttons stay stable across selection moves.
Re-renders only when the schema graph or the extension callbacks change. Pair with useApplicableSchema to determine which entries are applicable at the current selection (which buttons should be enabled vs. disabled).