[AMOS commit] MDL-55866 mod_data: Remember editor enabled state for templates Committed into Git: 2016-09-06 04:37 UTC

[AMOS commit] MDL-55866 mod_data: Remember editor enabled state for templates Committed into Git: 2016-09-06 04:37 UTC

by AMOS bot -
Number of replies: 0
Author: Andrew Nicols
MDL-55866 mod_data: Remember editor enabled state for templates
Some templates can legitimately contain invalid HTML (e.g. mismatched tags)
because the templates operate in pairs.

In these instances we should not use an editor because the nature of the
editor (content editable) means that the browser automatically corrects all
HTML supplied to it, thus breaking the template entirely.

Therefore we need to disable HTML editors for some templates, and do so in
a way tied to the instance of the activity, rather than to a specific user.

This patch adds a new 'config' field, with matching setters and getters, to
allow such per-instance values to be stored.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=4e2e54eed07d4537e65e4790fee1f6a335109ed7
http://github.com/moodle/moodle/commit/4e2e54eed07d4537e65e4790fee1f6a335109ed7

+ 3.2 en [enabletemplateeditorcheck,mod_data]