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