Skip to content

Type Editor


Type Editor / @type-editor/view / util/find-composition-node / findCompositionNode

Function: findCompositionNode()

ts
function findCompositionNode(view): Text;

Defined in: util/find-composition-node.ts:13

Finds the text node where composition is occurring. Looks at text nodes before and after the cursor, using heuristics to determine which one is being composed in.

Parameters

ParameterTypeDescription
viewEditorViewThe editor view

Returns

Text

The text node being composed in, or null if none found