@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 • 777 B
TypeScript
import { YooptaMark } from '../marks';
import { Plugin, PluginEvents } from './types';
import { SlateElement } from '../editor/types';
type Props<TElementMap extends Record<string, SlateElement>, TOptions> = Plugin<TElementMap, TOptions> & {
id: string;
marks?: YooptaMark<any>[];
options: Plugin<TElementMap, TOptions>['options'];
placeholder?: string;
events?: PluginEvents;
};
declare const SlateEditorComponent: <TElementMap extends Record<string, SlateElement<string, any>>, TOptions>({ id, customEditor, elements, marks, events, options, extensions: withExtensions, placeholder, }: Props<TElementMap, TOptions>) => import("react/jsx-runtime").JSX.Element;
export { SlateEditorComponent };
//# sourceMappingURL=SlateEditorComponent.d.ts.map