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

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

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

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

Parameters

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