prosekit/extensions/horizontal-rule
HorizontalRuleCommandsExtension
Type: Extension<{ Commands: { insertHorizontalRule: [] } }>
HorizontalRuleExtension
Type: Union<[HorizontalRuleSpecExtension, HorizontalRuleCommandsExtension]>
HorizontalRuleSpecExtension
Type: Extension<{ Nodes: { horizontalRule: Attrs } }>
defineHorizontalRule
ts
function defineHorizontalRule(): HorizontalRuleExtension
defineHorizontalRuleCommands
ts
function defineHorizontalRuleCommands(): HorizontalRuleCommandsExtension
defineHorizontalRuleInputRule
ts
function defineHorizontalRuleInputRule(): PlainExtension
defineHorizontalRuleSpec
ts
function defineHorizontalRuleSpec(): HorizontalRuleSpecExtension
insertHorizontalRule
ts
function insertHorizontalRule(): Command
Returns a command that inserts a horizontal rule at the current selection.