MDL-77761 core_form: Add label for editor format selector

This commit is contained in:
Jun Pataleta
2023-03-29 08:09:46 +08:00
parent 6273e6fdf3
commit 9ebea4011e
7 changed files with 12 additions and 11 deletions
+1
View File
@@ -453,6 +453,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;