Skip to content

CodeBlockFocusSnapshot

Where the focus was inside a rendered code block.

Import:

import type { CodeBlockFocusSnapshot } from '@mnaoumov/obsidian-lib/code-block-render-handoff';

Signature:

export interface CodeBlockFocusSnapshot

Properties

PropertyTypeDescription
childIndexPathreadonly number[]The child indices leading from the code block element to the focused element.
selectionnull | TextSelectionThe text selection of a focused input or text area.

Links to this page: