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

22 lines • 593 B
import type { YooEditor } from '../types'; import type { SetCurrentOptions } from './types'; /** * Set current block order * * @param editor - YooEditor instance * @param options - Set current options * * @example * ```typescript * // Set current block to order 0 * Selection.setCurrent(editor, { at: 0 }); * * // Set current block with source * Selection.setCurrent(editor, { * at: 1, * source: 'keyboard' * }); * ``` */ export declare function setCurrent(editor: YooEditor, options: SetCurrentOptions): void; //# sourceMappingURL=setCurrent.d.ts.map