MDL-43856 MathJax: Improvements to the MathJax filter
commitcc90cedc856153358cdc8852f46bc32d83897d04
authorDamyon Wiese <damyon@moodle.com>
Tue, 1 Apr 2014 07:20:59 +0000 (1 15:20 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 3 Apr 2014 06:36:36 +0000 (3 14:36 +0800)
tree108827a164bff8b00da6584048c94ee1cf18b718
parent289ed254a7196e0f67ab80eda34464c8b35a0594
MDL-43856 MathJax: Improvements to the MathJax filter

* Remove all traces of mathjax from the atto equation editor - it is filter agnostic
* Add a M.core.event module for core events that can be published/subscribed to by plugins (loose coupling)
* Add a FILTER_CONTENT_UPDATED event so plugins can tell the filter system when nodes are added to the page
* Implement a listener for this event in the MathJax filter
* Fire this event from the equation editor and from the glossary filter
* Add a nolink tag to the mathjax filter, so equations will not be processed by the other filters
* Add a smarter throttle function to the equation editor preview updates (Y.throttle is dumb)
26 files changed:
filter/glossary/yui/build/moodle-filter_glossary-autolinker/moodle-filter_glossary-autolinker-debug.js
filter/glossary/yui/build/moodle-filter_glossary-autolinker/moodle-filter_glossary-autolinker-min.js
filter/glossary/yui/build/moodle-filter_glossary-autolinker/moodle-filter_glossary-autolinker.js
filter/glossary/yui/src/autolinker/js/autolinker.js
filter/glossary/yui/src/autolinker/meta/autolinker.json
filter/mathjaxloader/filter.php
filter/mathjaxloader/lang/en/filter_mathjaxloader.php
filter/mathjaxloader/settings.php
filter/mathjaxloader/yui/build/moodle-filter_mathjaxloader-loader/moodle-filter_mathjaxloader-loader-debug.js
filter/mathjaxloader/yui/build/moodle-filter_mathjaxloader-loader/moodle-filter_mathjaxloader-loader-min.js
filter/mathjaxloader/yui/build/moodle-filter_mathjaxloader-loader/moodle-filter_mathjaxloader-loader.js
filter/mathjaxloader/yui/src/loader/js/loader.js
filter/mathjaxloader/yui/src/loader/meta/loader.json
lib/editor/atto/plugins/equation/lib.php
lib/editor/atto/plugins/equation/settings.php
lib/editor/atto/plugins/equation/yui/build/moodle-atto_equation-button/moodle-atto_equation-button-debug.js
lib/editor/atto/plugins/equation/yui/build/moodle-atto_equation-button/moodle-atto_equation-button-min.js
lib/editor/atto/plugins/equation/yui/build/moodle-atto_equation-button/moodle-atto_equation-button.js
lib/editor/atto/plugins/equation/yui/src/button/js/button.js
lib/editor/atto/plugins/equation/yui/src/button/meta/button.json
lib/yui/build/moodle-core-event/moodle-core-event-debug.js [new file with mode: 0644]
lib/yui/build/moodle-core-event/moodle-core-event-min.js [new file with mode: 0644]
lib/yui/build/moodle-core-event/moodle-core-event.js [new file with mode: 0644]
lib/yui/src/event/build.json [new file with mode: 0644]
lib/yui/src/event/js/event.js [new file with mode: 0644]
lib/yui/src/event/meta/event.json [new file with mode: 0644]