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:

ParameterTypeDescription
posnumberThe document position.

Returns: DirectionThe direction.