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