UNPKG

@tiptap/core

Version:

headless rich text editor

11 lines (10 loc) 331 B
import { PasteRule, PasteRuleFinder } from '../PasteRule.js'; /** * Build an paste rule that replaces text when the * matched text is pasted into it. * @see https://tiptap.dev/guide/custom-extensions/#paste-rules */ export declare function textPasteRule(config: { find: PasteRuleFinder; replace: string; }): PasteRule;