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 • 645 B
import type { YooEditor } from '../types'; import type { GetPointOptions } from './types'; /** * Get end point from Slate selection (later point) * * @param editor - YooEditor instance * @param options - Get point options * @returns End point or null * * @example * ```typescript * // Get end point from current selection * const end = Selection.getEnd(editor); * * // Get end point from specific block * const end = Selection.getEnd(editor, { at: 0 }); * ``` */ export declare function getEnd(editor: YooEditor, options?: GetPointOptions): import("slate").BasePoint | null; //# sourceMappingURL=getEnd.d.ts.map