UNPKG

react-latex-editor

Version:

A powerful React rich text editor with mathematical equation support, built on TipTap with MathLive integration

53 lines 1.32 kB
export interface EditorRef { addImage: (urls: string[]) => void; getHTML: () => string | undefined; setContent: (content: string) => void; } export interface EditorProps { /** * Initial content of the editor */ initialContent?: string; /** * Callback function when content changes */ onChange?: (content: string) => void; /** * Placeholder text for the editor */ placeholder?: string; /** * Whether the editor is read-only */ readOnly?: boolean; /** * Whether to auto-focus the editor on mount */ autoFocus?: boolean; /** * Additional CSS class name for styling */ className?: string; /** * Callback for image selection requests */ onImageSelectionRequest?: () => void; /** * Minimum height of the editor */ minHeight?: string; /** * Maximum height of the editor (for scrolling) */ maxHeight?: string; /** * Whether to show the character count */ showCharacterCount?: boolean; /** * Whether to show table controls */ showTableControls?: boolean; } export declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<EditorRef>>; //# sourceMappingURL=Editor.d.ts.map