Doc.setBookmark method
Doc › setBookmark
Unofficial
Inserts a bookmark at the given position.Signature:
setBookmark(pos: Position, options?: Cm5BookmarkOptions | undefined): TextMarkerParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | Position | The position of the bookmark. |
| options? | Cm5BookmarkOptions | undefined | Optional bookmark options. |
Returns: TextMarker — The created text marker.