@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
21 lines (20 loc) • 631 B
TypeScript
import { type ReactNode } from 'react';
type LocaleType = typeof import("../../locale").default;
export interface EditorProviderConfig {
[key: string]: any;
locale?: Partial<LocaleType>;
theme?: Record<string, any>;
}
interface EditorContextValue {
config: EditorProviderConfig;
}
export interface EditorProviderProps {
children: ReactNode;
config?: EditorProviderConfig;
}
export declare const EditorProvider: {
({ children, config }: EditorProviderProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export declare const useEditorContent: () => EditorContextValue;
export {};