View as Markdown

API reference: @salmonui/rich-text

detectPasteSourcefunction

import { detectPasteSource } from '@salmonui/rich-text';
function detectPasteSource(html: string): PasteSource;

Detects Word (desktop and online) and Google Docs clipboard HTML.