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