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 • 666 B
import type { YooEditor } from '../types'; import type { GetPointOptions } from './types'; /** * Get last point in block * * @param editor - YooEditor instance * @param options - Get point options * @returns Last point in block * * @example * ```typescript * // Get last point in current block * const lastPoint = Selection.getLastPoint(editor); * * // Get last point in specific block * const lastPoint = Selection.getLastPoint(editor, { at: 0 }); * ``` */ export declare function getLastPoint(editor: YooEditor, options?: GetPointOptions): { path: number[]; offset: number; }; //# sourceMappingURL=getLastPoint.d.ts.map