You can do that using our editor embedded: http://www.wiris.com/editor/docs/resources/embed-editor
You can follow this example: http://www.wiris.net/demo/editor/tests/files/test15.html
As you can see in the source code of the example, upon clicking on a page element (in this case they are simple buttons but you could use images), it calls editor1.action('<action>')
where <action>
would be any of our toolbar button IDs and then editor1.focus()
. For example, editor1.action('fraction');editor1.focus();
. You can also add your custom MathML (like the Right brackets button does in the example) or symbols.