Type Editor / @type-editor/commands / toggle-block-type
toggle-block-type
Functions
| Function | Description |
|---|---|
Creates a command that toggles between two block types. If the selection is currently inside a node of the specified This is useful for implementing toggle buttons (e.g., toggling between a heading and a paragraph). |