-
Improvement
-
Resolution: Fixed
-
Major
-
3.0.5, 3.1.1
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MOODLE_32_STABLE
-
MDL-55866-master -
When creating the List template you are able to provide HTML for three template areas:
- header
- repeated items
- footer
At the moment these default to being HTML editors, however there are often times where you wish to open an HTML tag in the header, and close it in the footer - for example, a table.
Although you already can disable the editor, when you view the page later after saving changes, it appears as an HTML editor.
Since the Atto editor uses Content editable, browsers will automatically tidy up any invalid HTML. This means that any unclosed HTML tags are closed automatically, thus destroying the intent of the template.
We need to remember the current state of the editor, particularly for the List template and perhaps warn when re-enabling the editor .