SetCompositionParams
Parameters for Lib.setComposition.
Import:
import type { SetCompositionParams } from 'obsidian-integration-testing';Signature:
export interface SetCompositionParamsProperties
| Property | Type | Description |
|---|---|---|
| selectionEnd? | number | Where the selection ends inside SetCompositionParams.text, in UTF-16 code units. |
| selectionStart? | number | Where the selection starts inside SetCompositionParams.text, in UTF-16 code units. |
| text | string | The composition's text. It replaces the text of a composition already open. An empty string cancels the composition. |
| window? | Window | The Obsidian window to compose in: the main window or a popout. **On mobile** there are no popouts, so any window but the main one throws. |
Links to this page: