Back to Content

EditContext: characterBoundsRangeStart property

files/en-us/web/api/editcontext/characterboundsrangestart/index.md

latest641 B
Original Source

{{APIRef("EditContext API")}}{{SeeCompatTable}}

The characterBoundsRangeStart read-only property of the {{domxref("EditContext")}} interface indicates the index of the character, within the editable text content, that corresponds to the first item in the {{domxref("EditContext.characterBounds()", "characterBounds")}} array.

For example, if the EditContent contains the characters abc, and if characterBoundRangeStart is 1, the first item in the characterBounds array contains the bounds for the character b.

Value

A {{jsxref("Number")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}