I have integrated DragMath with Moodle and am making it available for you to try and hopefully to improve.
The attached zip file contains two files. They replace existing files, so you may want to back up the originals before trying this.
As you may have guessed, you will sacrifice your ability to insert smileys into your text through the GUI. For me, this is no great loss
The reason for integrating the equation editor with the Moodle HTML editor (rather than using a filter, like GeoGebra and Jmol) is quite simple: You want the equation editor to be available whenever you're entering text.
The screenshot below shows the sequence of operations in using DragMath.
- While entering text into the HTML editor, you decide to insert some mathematical notation.
- press the "pi" button on the toolbar to pop up the DragMath editor (Note: the first time you use it, you will experience a delay as the Java runtime environment initializes. On subsequent uses, you will get the popus very quickly)
- resize the popup window (it will be too small because it was designed for smileys)
- create your equation graphically
- press the LaTeX button. Note: because Moodle currently does not support the other markup languages, you must press LaTeX.
- press the Insert button. This inserts LaTeX into the HTML editor and adds the $$$ at both ends.
- The size of the popup should be changed so that it does not have to be resized.
- We should be able to have both the smiley button and the DragMath button
- Be able to hide the MathML and Maxima buttons at the bottom of the DragMath editor so that only LaTeX is visible
- Eliminate the Insert button (pressing the LaTeX button should do the editor insertion)
- Advance the cursor in the HTML editor so that it is now AFTER the LaTeX just inserted (currently, the cursor remains at its position prior to the insertion)
- There may be some characters in the generated LaTeX that need escaping. For example, \frac{3}{4}. Let me know about these.