MDL-50142 user: context sensitive help

Added context sensitive help to
Edit Profile > Text Editor
This commit is contained in:
Ben Tindell 2015-05-08 09:46:22 -05:00 committed by David Monllao
parent 35d3e8b00b
commit f611319ed4
2 changed files with 2 additions and 0 deletions

View File

@ -1826,6 +1826,7 @@ $string['teacheronly'] = 'for the {$a} only';
$string['teacherroles'] = '{$a} roles';
$string['teachers'] = 'Teachers';
$string['textediting'] = 'Text editor';
$string['textediting_help'] = 'Use this option to select the editor that you would like to use when entering text. This will include, but is not limited to, areas such as labels, descriptions, and summaries. If you select "Plain text area", all text entry areas with allow you to use HTML format, Moodle auto-format, Plain text format, or Markdown format.';
$string['texteditor'] = 'Use standard web forms';
$string['textformat'] = 'Plain text format';
$string['thanks'] = 'Thanks';

View File

@ -55,6 +55,7 @@ class user_edit_editor_form extends moodleform {
$choices[$editor] = get_string('pluginname', 'editor_' . $editor);
}
$mform->addElement('select', 'preference_htmleditor', get_string('textediting'), $choices);
$mform->addHelpButton('preference_htmleditor', 'textediting');
$mform->setDefault('preference_htmleditor', '');
} else {
// Empty string means use the first chosen text editor.