API reference: @salmonui/editors/markdown-editor
MarkdownTextStateinterface
import type { MarkdownTextState } from '@salmonui/editors/markdown-editor';interface TextState {
readonly text: string;
readonly start: number;
readonly end: number;
}
| Name | Signature | Description |
|---|---|---|
text | readonly text: string; | |
start | readonly start: number; | Selection start (UTF-16 offset). |
end | readonly end: number; | Selection end; equal to |