EditorView.moveByChar method
EditorView › moveByChar
Official
Move a cursor position by grapheme cluster.Signature:
moveByChar(start: SelectionRange, forward: boolean, by?: (initial: string) => (next: string) => boolean): SelectionRangeParameters:
| Parameter | Type | Description |
|---|---|---|
| start | SelectionRange | The start selection range. |
| forward | boolean | Whether to move forward. |
| by? | (initial: string) => (next: string) => boolean | Optional grouping function. |
Returns: SelectionRange — The new selection range.