View as Markdown

API reference: @salmonui/rich-text

RichTextSelectioninterface

import type { RichTextSelection } from '@salmonui/rich-text';
interface RichTextSelection {
    readonly anchor: number;
    readonly head: number;
    readonly from: number;
    readonly to: number;
    readonly empty: boolean;
    readonly text: string;
}
RichTextSelection members (6)
NameSignatureDescription
anchorreadonly anchor: number;
headreadonly head: number;
fromreadonly from: number;
toreadonly to: number;
emptyreadonly empty: boolean;
textreadonly text: string;

Selected plain text.