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:

Parameter Type Description
pos Position The position of the bookmark.
options? Cm5BookmarkOptions | undefined Optional bookmark options.

Returns: TextMarkerThe created text marker.