Skip to content

ComposeIntoEditorParams

Parameters for Lib.composeIntoEditor.

Import:

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

Signature:

export interface ComposeIntoEditorParams

Properties

PropertyTypeDescription
chunking?'character' | 'word'How ComposeIntoEditorParams.text is split into compositions.

- 'word': one composition per word, growing a character at a time. A word's trailing whitespace is part of its commit. - 'character': one composition per character.
editorEditorThe editor to compose into. It is focused, with the caret at the end of the document, first. The composition goes to the window that owns it.
textstringThe text to compose.

Links to this page: