analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
26 lines • 1.11 kB
TypeScript
interface RichEditorProps {
readonly content?: string;
readonly onChange?: (data: {
json: object;
html: string;
}) => void;
readonly placeholder?: string;
/**
* Optional callback to generate LaTeX using AI
* If provided, the AI generation feature will be enabled in the formula dialog
* @param description - Natural language description of the formula
* @returns Promise resolving to the LaTeX string
*/
readonly onGenerateLatexWithAI?: (description: string) => Promise<string>;
/**
* Optional callback to upload an image file and get back its public URL.
* If provided, the file upload tab is enabled in the image dialog; otherwise
* images can still be inserted by URL.
* @param file - The image file selected by the user
* @returns Promise resolving to the public URL of the uploaded image
*/
readonly onUploadImage?: (file: File) => Promise<string>;
}
export declare function RichEditor(props: RichEditorProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=RichEditor.d.ts.map