diff --git a/src/index.tsx b/src/index.tsx index 8ea3a3e..0886af1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -89,6 +89,10 @@ class EquationEditor extends Component { this.mathField = mathQuill.MathField(this.element.current, config); this.mathField.latex(value || ""); } + + insert(input: string) { + this.mathField.write(input) + } render() { return (