@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
8 lines • 535 B
TypeScript
import { Path } from 'slate';
import { SlateElement, YooEditor } from '../types';
export type UpdateElementOptions = {
path?: Path;
};
export type UpdateElement<TElementKeys extends string, TElementProps> = Partial<Omit<SlateElement<TElementKeys, TElementProps>, 'id'>>;
export declare function updateElement<TElementKeys extends string, TElementProps>(editor: YooEditor, blockId: string, element: UpdateElement<TElementKeys, TElementProps>, options?: UpdateElementOptions): void;
//# sourceMappingURL=updateElement.d.ts.map