API reference: @salmonui/rich-text
RichTextPasteCleanupinterface
import type { RichTextPasteCleanup } from '@salmonui/rich-text';interface RichTextPasteCleanup extends Omit<PasteCleanupOptions, 'embedHosts' | 'sanitize'> {
}
| Name | Signature | Description |
|---|---|---|
modeoptionalinherited | mode?: PasteCleanupMode; |
|
allowedTagsoptionalinherited | allowedTags?: readonly string[]; | Only these elements survive (others are unwrapped, text kept). Vocabulary names ( |
deniedTagsoptionalinherited | deniedTags?: readonly string[]; | These elements are unwrapped (text kept). |
allowedAttributesoptionalinherited | allowedAttributes?: readonly string[]; | Only these attributes survive ( |
deniedAttributesoptionalinherited | deniedAttributes?: readonly string[]; | These attributes are removed. |
keepWordFormattingoptionalinherited | keepWordFormatting?: boolean; | In |
allowoptionalinherited | allow?: readonly SanitizeAllow[] | SanitizeAllow; | Passed to the sanitizer: extension elements and attributes. |