fn
caret
testedConstruct a collapsed caret selection.
Signature
ts
export function caret(blockId: string, offset: number): TextSelection{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
blockId | string | — |
offset | number | — |
Returns
TextSelection| Property | Type | Description |
|---|---|---|
kind | 'text' | — |
anchor | Position | — |
focus | Position | — |