TypeIntoEditorParams
Parameters for Lib.typeIntoEditor.
Import:
import type { TypeIntoEditorParams } from 'obsidian-integration-testing';Signature:
export interface TypeIntoEditorParamsProperties
| Property | Type | Description |
|---|---|---|
| editor | Editor | The 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. |
| text | string | The 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: