MDL-50142 user: context sensitive help

Added context sensitive help to
Edit Profile > Text Editor
This commit is contained in:
Ben Tindell
2015-10-05 09:32:02 +08:00
committed by David Monllao
parent 6d9b42695a
commit 73062f6503
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1823,6 +1823,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';
+1
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.