Moodle Plugins directory: Mathslate for Atto | Moodle.org

Mathslate for Atto
Atto ::: atto_mathslate
Maintained by
Daniel Thies
Mathslate is a customizable graphical tool for constructing mathematics within Moodle.
This plugin adds the tool to the Atto editor. It may be used in addition to or as a replacement for other formula editors.
Latest release:
730 sites
389 downloads
21 fans
Current versions available: 3
Mathslate is a mathematics
editor that this plugin adds to the Atto toolbar. It is similar in
functionality to DragMath which was included as a TinyMCE plugin in the
Moodle core for 2.0-2.7. MathSlate however has no Java dependency, and
consequently it should usable in a larger variety of browsers including
those on mobile devices. This plugin depends on the TinyMCE plugin.
To install unpack in the directory for Atto plugins and add the word
'mathslate' in the Atto toolbar settings to add the button in an
appropriate place on the toolbar. Enable MathJax in the heading or by
enabling the MathJax filter. The button will only appear on pages where
MathJax is available.
Useful links
Contributors
Daniel Thies (Lead maintainer)
Please login to view contributors details and/or to contact them
Thanks for looking at this. Have you tried it with the MathJax filter on? This is necessary if MathJax is not enabled in the theme head. The line you found is making this check.
This behaviour is different than the TinyMCE plugin for some historical reasons. The TinyMCE plugin was started in Moodle 2.4, and has a setting for a MathJax url to load if it is not available in the header, and loads it into an iframe header. Since MathJax was added to the core in 2.7 with the Atto, this plugin uses the filter instead of the one in the TinyMCE plugin to load MathJax. I could remove the restriction to allow using the Mathslate even when the MathJax filter is not enabled, but I am not sure if that might represent a security problem of some kind. A checkbox setting may be needed.
It also may be good to consider a plugin set for dependencies. Currently this plugin depends on the TinyMCE one where the bulk of the yui code is. However, I am assuming eventually that TinyMCE or yui support will be removed and this will no longer make sense.
If the core editor works, the check javascript console in you browsers tools menu to see if there is a helpful error message.
Great job!