Skip to content

SetCompositionParams

Parameters for Lib.setComposition.

Import:

import type { SetCompositionParams } from 'obsidian-integration-testing';

Signature:

export interface SetCompositionParams

Properties

PropertyTypeDescription
selectionEnd?numberWhere the selection ends inside SetCompositionParams.text, in UTF-16 code units.
selectionStart?numberWhere the selection starts inside SetCompositionParams.text, in UTF-16 code units.
textstringThe composition's text. It replaces the text of a composition already open. An empty string cancels the composition.
window?WindowThe 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: