Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@tiptap/react.ts>textblockTypeInputRule

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function textblockTypeInputRule
import { textblockTypeInputRule } from "https://deno.land/x/netzo@0.4.72/deps/@tiptap/react.ts";

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: InputRuleFinder; type: NodeType; getAttributes?:
| Record<string, any>
| ((match: ExtendedRegExpMatchArray) => Record<string, any>)
| false
| null
; }