Type Editor / @type-editor/menu / menu-items/heading-item / headingItem
Function: headingItem()
ts
function headingItem(level?, title?, nodeType?, codeBlockNodeType?): MenuItem;Defined in: packages/menu/src/menu-items/heading-item.ts:16
Menu item for the heading command.
Parameters
| Parameter | Type | Default value |
|---|---|---|
level | "1" | "2" | "3" | "4" | "5" | "6" | '1' |
title | string | ... |
nodeType | NodeType | schema.nodes.heading |
codeBlockNodeType | NodeType | schema.nodes.code_block |