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:

ParameterTypeDescription
posEditorPositionThe position to set the bookmark at.
options?SetBookmarkOptions | undefinedThe bookmark options.

Returns: BookmarkThe created bookmark.