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>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.106/deps/@tiptap/react.ts";

Paste rules are used to react to pasted content.

Constructors

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

Properties

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