From ea0be3d0d310266840aa5109467c45807d18e8f5 Mon Sep 17 00:00:00 2001 From: Sean Alling Date: Wed, 2 Feb 2022 20:37:17 -0500 Subject: [PATCH] Add insert method to EquationEditor --- src/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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 (