Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Build an paste rule that adds a node when the matched text is pasted into it.

Parameters

config: { find: PasteRuleFinder; type: NodeType; getAttributes?:
| Record<string, any>
| ((match: ExtendedRegExpMatchArray, event: ClipboardEvent) => Record<string, any>)
| false
| null
; }