textblockTypeInputRule
@blockslides/core / textblockTypeInputRule
Function: textblockTypeInputRule()
textblockTypeInputRule(
config):InputRule
Defined in: blockslides/packages/core/src/inputRules/textblockTypeInputRule.ts:15
Build an input rule that changes the type of a textblock when the
matched text is typed into it. When using a regular expresion you’ll
probably want the regexp to start with ^, so that the pattern can
only occur at the start of a textblock.
Parameters
config
find
type
NodeType
undoable?
boolean
getAttributes?
false | Record<string, any> | (match) => Record<string, any> | null
Returns
See
https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules