Skip to content

Lib.composeIntoEditor

Lib › composeIntoEditor

Type: (this: void, params: ComposeIntoEditorParams) => Promise<void>

Types text into an Editor through IME composition (compositionstart / compositionupdate / compositionend), not key presses, as Gboard and CJK input methods deliver it.

It focuses the editor (caret to end), runs one composition per word or per character, and polls until the document changes or a bounded timeout elapses, which is the expected outcome for a read-only editor.

**On Android** the composition is sent to the WebView over CDP, so it can exercise only the page's and CodeMirror's composition handling, not a real keyboard's InputConnection path. This path has not been verified on a device yet.