Skip to content

prosekit/extensions/horizontal-rule

HorizontalRuleCommandsExtension

HorizontalRuleCommandsExtension: Extension<object>

Type declaration

NameType
Commandsobject
Commands.insertHorizontalRule[]

HorizontalRuleExtension

HorizontalRuleExtension: Union<[HorizontalRuleSpecExtension, HorizontalRuleCommandsExtension]>


HorizontalRuleSpecExtension

HorizontalRuleSpecExtension: Extension<object>

Type declaration

NameType
Nodesobject
Nodes.horizontalRuleAttrs

defineHorizontalRule()

defineHorizontalRule(): HorizontalRuleExtension

Returns

HorizontalRuleExtension


defineHorizontalRuleCommands()

defineHorizontalRuleCommands(): HorizontalRuleCommandsExtension

Returns

HorizontalRuleCommandsExtension


defineHorizontalRuleInputRule()

defineHorizontalRuleInputRule(): PlainExtension

Returns

PlainExtension


defineHorizontalRuleSpec()

defineHorizontalRuleSpec(): HorizontalRuleSpecExtension

Returns

HorizontalRuleSpecExtension


insertHorizontalRule()

insertHorizontalRule(): Command

Returns a command that inserts a horizontal rule at the current selection.

Returns

Command