Skip to content

Doc.setBookmark method

Doc › setBookmark

Unofficial

Inserts a bookmark at the given position.

Signature:

setBookmark(pos: Position, options?: Cm5BookmarkOptions | undefined): TextMarker

Parameters:

ParameterTypeDescription
posPositionThe position of the bookmark.
options?Cm5BookmarkOptions | undefinedOptional bookmark options.

Returns: TextMarkerThe created text marker.