import { PasteRule } from "https://deno.land/x/netzo@0.4.78/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
find: PasteRuleFinder
handler: (props: { state: EditorState; range: Range; match: ExtendedRegExpMatchArray; commands: SingleCommands; chain: () => ChainedCommands; can: () => CanCommands; pasteEvent: ClipboardEvent; dropEvent: DragEvent; }) => void | null