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

23 lines • 676 B
import type { YooEditor } from '../types'; import type { GetPointOptions } from './types'; /** * Get first point in block * * @param editor - YooEditor instance * @param options - Get point options * @returns First point in block * * @example * ```typescript * // Get first point in current block * const firstPoint = Selection.getFirstPoint(editor); * * // Get first point in specific block * const firstPoint = Selection.getFirstPoint(editor, { at: 0 }); * ``` */ export declare function getFirstPoint(editor: YooEditor, options?: GetPointOptions): { path: number[]; offset: number; }; //# sourceMappingURL=getFirstPoint.d.ts.map