MDL-77761 core_form: Add label for editor format selector

This commit is contained in:
Jun Pataleta
2023-03-28 23:35:24 +08:00
parent ed154e71b0
commit 4a4bf70e8b
5 changed files with 7 additions and 4 deletions
+1
View File
@@ -444,6 +444,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element implements templatab
$context['id'] = $id;
$context['value'] = $text;
$context['format'] = $format;
$context['formatlabel'] = get_string('editorxformat', 'editor', $this->_label);
if (!is_null($this->getAttribute('onblur')) && !is_null($this->getAttribute('onchange'))) {
$context['changelistener'] = true;