@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 • 647 B
TypeScript
import type { Path } from 'slate';
import type { YooEditor } from '../types';
import type { GetElementPathOptions } from './types';
/**
* Get path of an element in the Slate tree
*
* @param editor - YooEditor instance
* @param options - Get options
* @returns Element path or null if not found
*
* @example
* ```typescript
* // Get path of element
* const path = editor.getElementPath({
* blockId: 'accordion-1',
* element: accordionItemElement
* });
* ```
*/
export declare function getElementPath(editor: YooEditor, options: GetElementPathOptions): Path | null;
//# sourceMappingURL=getElementPath.d.ts.map