react-latex-editor
Version:
A powerful React rich text editor with mathematical equation support, built on TipTap with MathLive integration
26 lines • 822 B
TypeScript
import { Component } from 'react';
import { ReactNodeViewProps } from '@tiptap/react';
import { Node } from '@tiptap/pm/model';
interface MathNodeAttrs {
latex: string;
displayMode: boolean;
}
interface MathNodeViewProps extends ReactNodeViewProps {
node: Node & {
attrs: MathNodeAttrs;
};
}
declare class MathNodeView extends Component<MathNodeViewProps> {
private mathFieldRef;
private cleanup?;
constructor(props: MathNodeViewProps);
componentDidMount(): Promise<void>;
componentDidUpdate(prevProps: MathNodeViewProps): void;
componentWillUnmount(): void;
setupMathField(): void;
updateMathField(): void;
cleanupMathField(): void;
render(): import("react/jsx-runtime").JSX.Element;
}
export default MathNodeView;
//# sourceMappingURL=MathNodeView.d.ts.map