mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
f1be9b6544
When an editor is used in a form as part of a group, it is missing its label element. This happens because there is no inline template for the editor, and therefore it reverts to using the old `toHtml` function. The legacy function does not cater to the editor being in a group, and therefore does not add the hidden label. In addition, the hiddenLabel attribute was missing from the editor element. This is a semi-standard element but must be added to each supporting element. Both the missing inline template for the editor, and the hidden label attribute must be present: - If the hidden label attribute is not present, then the standard inline template will add a visible label within the group. - If the inline editor template is missing, then the label is not shown at all.
6 lines
143 B
Plaintext
6 lines
143 B
Plaintext
{{< core_form/element-template-inline }}
|
|
{{$element}}
|
|
{{{element.html}}}
|
|
{{/element}}
|
|
{{/ core_form/element-template-inline }}
|