Skip to content

Cm5LineHandle

Unofficial

A handle to a line in a CodeMirror 5 document.

Import:

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

Signature:

export interface Cm5LineHandle

Properties

PropertyTypeDescription
textstringThe text content of the line.

Methods

MethodReturnsDescription
off('change', handler)voidRemoves an event listener for the specified event.
off('delete', handler)voidRemoves an event listener for the specified event.
on('change', handler)voidRegisters an event listener for the specified event.
on('delete', handler)voidRegisters an event listener for the specified event.

Links to this page: