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

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

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

Constructors

new
PasteRule(config: { find: PasteRuleFinder; handler: (props: { can: () => CanCommands; chain: () => ChainedCommands; commands: SingleCommands; dropEvent: DragEvent; match: ExtendedRegExpMatchArray; pasteEvent: ClipboardEvent; range: Range; state: EditorState; }) => void | null; })

Properties

handler: (props: { state: EditorState; range: Range; match: ExtendedRegExpMatchArray; commands: SingleCommands; chain: () => ChainedCommands; can: () => CanCommands; pasteEvent: ClipboardEvent; dropEvent: DragEvent; }) => void | null