Used execCommand to insert math into the editor