a simple editor for math formula