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 • 603 B
import type { InsertElementOptions } from './types'; import type { YooEditor } from '../types'; /** * Insert element into a block * * @param editor - YooEditor instance * @param options - Insert options * * @example * ```typescript * // Insert at next position * editor.insertElement({ * blockId: 'accordion-1', * type: 'accordion-list-item', * props: { isExpanded: true }, * at: 'next', * focus: true * }); * ``` */ export declare function insertElement(editor: YooEditor, options: InsertElementOptions): void; //# sourceMappingURL=insertElement.d.ts.map