View as Markdown

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.

SanitizeAllow members (2)
NameSignatureDescription
tagsoptionalreadonly tags?: readonly string[];
attributesoptionalreadonly attributes?: Readonly<Record<string, readonly string[]>>;