Skip to content

Cm5BookmarkOptions

Unofficial

Options for creating a bookmark in CodeMirror 5.

Import:

import type { Cm5BookmarkOptions } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface Cm5BookmarkOptions

Properties

Property Type Description
handleMouseEvents? boolean Whether CodeMirror handles mouse events on the bookmark widget.
insertLeft? boolean Whether text typed at the bookmark position goes to the left of it.
shared? boolean Whether the bookmark appears in all linked documents.
widget? HTMLElement A DOM node to display at the bookmark position.