Moodle Plugins directory: Matrix editor | Moodle.org

Matrix editor
Moodle Atto Editor plugin for TeX/MathJax Matrices and Arrays.
Edit matrices and arrays in Moodle 2.7, or later, using the MathJax or TeX filter. Includes templates for 1xn 2xn, 3xn and mxn matrices and a range of brackets and braces.
Requirements:
1. The MathJax filter to be enabled (recommended) or the TeX filter enabled (or, in Moodle 2.8, both)
Administration > Site administration > Plugins > Filters > Manage filters
Don't forget to also enable the appropriate filter in the relevant course:
Administration > Course administration > Filters
2. The matrix editor button (matrix icon) to be added to the Atto editor toolbar:
Edit Administration > Site administration > Plugins > Text editors > Atto HTML editor > Atto toolbar settings > Toolbar config, to give, for example:
insert = equation,
matrix,
charmap, table, clear
Immediately after installation and configuration you may need to clear your Moodle server caches:
Administration > Site administration > Development > Purge all caches
and local browser cache for correct display.
Hi. Thanks for sharing this plugin with the community. The plugins team is currently busy with other development tasks for the upcoming Moodle 3.0 release, so please expect delays in the review and approval process. Thanks for your understanding and patience, we will do our best to get to reviewing your plugin soon.
http://integration.moodle.org/job/Precheck%20remote%20branch/17021/artifact/work/smurf.html
Will attend to the others.
No worries Geoffrey. I checked the generated warnings and they do not seem valid in many cases. It is indeed ok to format the long strings in your settings.php this way. What seems to be valid is the extra
@param
line in the docblock for youratto_matrix_strings_for_js()
as that function does not actually accept any parameters. Other warnings seem to be raised because of using the reserved keyword in theBased on @package ...
. You should be able to get rid of them by simply removing the @package from there, if you want.What caught my eye is that you are including
$OUTPUT->header()
in your ajax.php response. I think it should be removed and all you want to return is thefilter_text()
output. I believe theheader()
does not produce any content in this case anyway, right?This is really nice UI widget and front-end for the filters. Good idea, nice design and well implemented. I am happy to approve it now. You are cleared to land, welcome to the plugins directory!