Skip to content

TextMarker

Unofficial

A text marker in a CodeMirror 5 document.

Import:

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

Signature:

export interface TextMarker

Methods

Method Returns Description
changed() void Fired when the marked range changes.
clear() void Clears the marker.
find() TextMarkerRange | undefined Finds the current position of the marker.
off(eventName, handler) void Removes an event listener.
on(eventName, handler) void Registers an event listener.

Links to this page: