Skip to content
Document Authoring DA  API Docs v1.14.1
npmGitHub

TextAnchorInputRange

TextAnchorInputRange:

A paragraph-local text range used to create a text comment thread anchor.

Creation inputs use a TextView because callers are applying an anchor to a specific text surface. Provide range to anchor a substring. Omit range to anchor the whole text view.

If a supplied input range cannot produce valid anchor text, comment thread creation returns undefined and leaves the document unchanged.

textView: TextView

Text surface that receives the comment thread anchor.


optional range: Range

Optional paragraph-local range within textView. If omitted, the whole text view is used as the anchor.