View as Markdown

API reference: @salmonui/rich-text

pasteNeedsPromptfunction

import { pasteNeedsPrompt } from '@salmonui/rich-text';
function pasteNeedsPrompt(html: string, options?: Pick<PasteCleanupOptions, 'mode'>): boolean;

Whether mode: 'prompt' needs to ask for this paste (formatted HTML; plain text never asks).