Skip to content

TypeIntoEditorParams

Parameters for Lib.typeIntoEditor.

Import:

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

Signature:

export interface TypeIntoEditorParams

Properties

PropertyTypeDescription
editorEditorThe editor to type into. It is focused (with the caret moved to the end of the document) before the keystrokes are injected.

The keystrokes go to the window that owns the editor, so an editor in a popout is typed into in that popout with no extra parameter.
textstringThe text to type. Each code point is pressed via Lib.pressKey (a trusted keyDown → char → keyUp), exactly as a real user typing.

Links to this page: