API reference: @salmonui/rich-text
SanitizeAllowinterface
import type { SanitizeAllow } from '@salmonui/rich-text';interface SanitizeAllow {
readonly tags?: readonly string[];
readonly attributes?: Readonly<Record<string, readonly string[]>>;
}
Elements and attributes an editor extension adds to the vocabulary
(RichTextExtension.html). attributes maps a tag (an extension tag or a
vocabulary tag) to extra attribute names.
| Name | Signature | Description |
|---|---|---|
tagsoptional | readonly tags?: readonly string[]; | |
attributesoptional | readonly attributes?: Readonly<Record<string, readonly string[]>>; |