@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
25 lines • 680 B
TypeScript
import type { YooEditor } from '../types';
import type { SetSelectedOptions } from './types';
/**
* Set selected block orders
*
* @param editor - YooEditor instance
* @param options - Set selected options
*
* @example
* ```typescript
* // Select single block
* Selection.setSelected(editor, { at: 0 });
*
* // Select multiple blocks
* Selection.setSelected(editor, { at: [0, 1, 2] });
*
* // Select with source
* Selection.setSelected(editor, {
* at: [0, 1],
* source: 'selection-box'
* });
* ```
*/
export declare function setSelected(editor: YooEditor, options: SetSelectedOptions): void;
//# sourceMappingURL=setSelected.d.ts.map