UNPKG

@yoopta/editor

Version:

<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311

20 lines • 732 B
import type { YooEditor } from '../types'; import type { GetSelectedOptions } from './types'; /** * Get selected block orders or check if specific block is selected * * @param editor - YooEditor instance * @param options - Get selected options * @returns Selected block orders array, or boolean if `at` is provided * * @example * ```typescript * // Get all selected block orders * const selected = Selection.getSelected(editor); * * // Check if specific block is selected * const isSelected = Selection.getSelected(editor, { at: 0 }); * ``` */ export declare function getSelected(editor: YooEditor, options?: GetSelectedOptions): number[] | null | boolean; //# sourceMappingURL=getSelected.d.ts.map