@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
16 lines (15 loc) • 497 B
TypeScript
import type { ReactNode } from 'react';
import { useEditor } from '../hooks/useEditor';
import { useEditorState } from '../hooks/useEditorState';
import type { EditorProps } from './type';
import { withProps } from './utils';
interface IEditor {
(props: EditorProps): ReactNode;
useEditor: typeof useEditor;
useEditorState: typeof useEditorState;
withProps: typeof withProps;
}
declare const Editor: IEditor;
export default Editor;
export * from './type';
export * from './utils';