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

13 lines • 586 B
import { Path, Span } from 'slate'; import { YooEditor } from '../types'; export type CreateBlockElementOptions = { path?: 'next' | 'prev' | Path | Span; focus?: boolean; split?: boolean; }; export type CreateElement<TElementKeys, TElementProps> = { type: TElementKeys; props?: TElementProps; }; export declare function createElement<TElementKeys extends string, TElementProps>(editor: YooEditor, blockId: string, element: CreateElement<TElementKeys, TElementProps>, options?: CreateBlockElementOptions): void; //# sourceMappingURL=createElement.d.ts.map