Skip to content

Cm5EditorSelectionChange

Unofficial

A selection change event object in CodeMirror 5.

Import:

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

Signature:

export interface Cm5EditorSelectionChange

Properties

Property Type Description
origin? string The origin of the selection change.
ranges Cm5Range[] The new selection ranges.

Methods

Method Returns Description
update(ranges) void Modifies the ranges for this selection change.