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 • 662 B
import type { YooEditor } from '../types'; import type { IsElementEmptyOptions } from './types'; /** * Check if element is empty (has no text content) * * @param editor - YooEditor instance * @param options - Check options * @returns true if element is empty, false otherwise * * @example * ```typescript * // Check if content is empty * const isEmpty = editor.isElementEmpty({ * blockId: 'accordion-1', * type: 'accordion-list-item-content', * path: [0, 1, 1] * }); * ``` */ export declare function isElementEmpty(editor: YooEditor, options: IsElementEmptyOptions): boolean; //# sourceMappingURL=isElementEmpty.d.ts.map