Skip to main content

MoveCursorToAnnotationRange

Moves the cursor to the beginning or end of the specified annotation range without selecting it.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Syntax​

expression.MoveCursorToAnnotationRange(annotation, isBegin);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
annotationRequiredTextAnnotationThe annotation object.
isBeginOptionalbooleantrueIf true, moves to the beginning of the range; otherwise to the end.

Returns​

This method doesn't return any data.

Example​

window.Asc.plugin.executeMethod("MoveCursorToAnnotationRange", [{
paragraphId: "p1",
rangeId: "a1",
name: "grammar"
}, true]);