@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
14 lines • 432 B
TypeScript
import { YooEditor, YooptaPathIndex } from '../types';
export type DuplicateBlockOptions = {
original: {
blockId?: never;
path: YooptaPathIndex;
} | {
blockId: string;
path?: never;
};
focus?: boolean;
at?: YooptaPathIndex;
};
export declare function duplicateBlock(editor: YooEditor, options: DuplicateBlockOptions): any;
//# sourceMappingURL=duplicateBlock.d.ts.map