Skip to content

CodeMirrorEditor.setBookmark method

CodeMirrorEditor › setBookmark

Unofficial

Set a bookmark at the given position.

Signature:

setBookmark(pos: EditorPosition, options?: SetBookmarkOptions | undefined): Bookmark

Parameters:

Parameter Type Description
pos EditorPosition The position to set the bookmark at.
options? SetBookmarkOptions | undefined The bookmark options.

Returns: BookmarkThe created bookmark.