Skip to content

EditorView.textDirectionAt method

EditorView › textDirectionAt

Official

Find the text direction of the block at the given position.

Signature:

textDirectionAt(pos: number): Direction

Parameters:

Parameter Type Description
pos number The document position.

Returns: DirectionThe direction.