Lib.setComposition
Lib › setComposition
Type: (this: void, params: SetCompositionParams) => Promise<void>
Opens an IME composition in the focused element, or replaces the text of the open one, firing the real composition events. The composition stays open until Lib.commitComposition, which is what a test needs to assert on a state where CodeMirror'sview.composing is set.The caller focuses the target first. It does not poll for any effect. **Must be awaited.** See Lib.composeIntoEditor for the Android limit.