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 • 668 B
import type { YooEditor, YooptaPathIndex } from '../types'; import type { GetCurrentOptions } from './types'; /** * Get current block order * * @param editor - YooEditor instance * @param options - Get current options * @returns Current block order or null * * @example * ```typescript * // Get current block order * const current = Selection.getCurrent(editor); * * // Get specific block order (same as editor.path.current) * const current = Selection.getCurrent(editor, { at: 0 }); * ``` */ export declare function getCurrent(editor: YooEditor, options?: GetCurrentOptions): YooptaPathIndex; //# sourceMappingURL=getCurrent.d.ts.map