Skip to content

Cm5BookmarkOptions

Unofficial

Options for creating a bookmark in CodeMirror 5.

Import:

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

Signature:

export interface Cm5BookmarkOptions

Properties

PropertyTypeDescription
handleMouseEvents?booleanWhether CodeMirror handles mouse events on the bookmark widget.
insertLeft?booleanWhether text typed at the bookmark position goes to the left of it.
shared?booleanWhether the bookmark appears in all linked documents.
widget?HTMLElementA DOM node to display at the bookmark position.