Skip to content

CodeMirrorEditor.setBookmark method

CodeMirrorEditor › setBookmark

Unofficial

Set a bookmark at the given position.

Signature:

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

Parameters:

ParameterTypeDescription
posEditorPositionThe position to set the bookmark at.
options?SetBookmarkOptionsThe bookmark options.

Returns: Bookmark — The created bookmark.