View as Markdown

API reference: @salmonui/rich-text

RichTextLinkInputinterface

import type { RichTextLinkInput } from '@salmonui/rich-text';
interface RichTextLinkInput {
    readonly href: string;
    readonly text?: string | undefined;
    readonly title?: string | undefined;
    readonly target?: '_blank' | null | undefined;
}
RichTextLinkInput members (4)
NameSignatureDescription
hrefreadonly href: string;
textoptionalreadonly text?: string | undefined;

Link text inserted when the selection is empty (default the URL).

titleoptionalreadonly title?: string | undefined;
targetoptionalreadonly target?: '_blank' | null | undefined;

'_blank' opens in a new window (rel="noopener noreferrer" is added).