Skip to main content

markInputRule

@blockslides/core


@blockslides/core / markInputRule

Function: markInputRule()

markInputRule(config): InputRule

Defined in: blockslides/packages/core/src/inputRules/markInputRule.ts:14

Build an input rule that adds a mark when the matched text is typed into it.

Parameters

config

find

InputRuleFinder

type

MarkType

undoable?

boolean

getAttributes?

false | Record<string, any> | (match) => Record<string, any> | null

Returns

InputRule

See

https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules