R
fn

caret

tested

Construct a collapsed caret selection.

Signature

ts
export function caret(blockId: string, offset: number): TextSelection{ ... }

Parameters

ParameterTypeDescription
blockIdstring
offsetnumber

Returns

TextSelection