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

21 lines • 696 B
import type { SlateElement, YooEditor } from '../types'; import type { GetElementChildrenOptions } from './types'; /** * Get children of an element * * @param editor - YooEditor instance * @param options - Get options * @returns Element children or null if element not found * * @example * ```typescript * // Get children of accordion item * const children = editor.getElementChildren({ * blockId: 'accordion-1', * type: 'accordion-list-item', * path: [0, 1] * }); * ``` */ export declare function getElementChildren(editor: YooEditor, options: GetElementChildrenOptions): SlateElement['children'] | null; //# sourceMappingURL=getElementChildren.d.ts.map