Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.8.5, 1.9, 2.0
-
Fix Version/s: 2.0.8
-
Component/s: Accessibility
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
-
Fixed Branches:MOODLE_20_STABLE
Description
Very often people with disabilities (and even people without disabilities
) disables the HTML editor, which currently does not is fully compliant with accessibility guidelines. This way people can use markdown, HTML or plain text format according to the selection made on the drop down menu appearing just below the editing text area.
However, it is needed to select the preferred format each time a text is entered. Would be really useful, especially for people with disabilities, to have a setting in the user profile were the preferred format can be selected once the editor is disabled.
Probably the current User profile drop down list "When editing text" could be used to specify the preferred format:
Use HTML Editor
Use Standard Web form - Plain text
Use Standard Web form - Markdown
Use Standard Web form - HTML
Use Standard Web form - Moodle Format
Once selected, when editing text the default format will always be preset accordingly. However, user can select other format in case of need.
Maybe it could be some other setting too.
$cfg->htmleditor and $user->htmleditor are used for testing if a person wants to use editor or not and editor is rendered or not according to this setting (through $usehtmleditor)
I have used the same setting for selecting different editors: 0 = no editor, 1 = default editor, 2 = second editor... but it does not mean you may not use $user->htmleditor for other purposes as well.
In TinyMCE it is possible to set keyboard shortcuts or build a different plugin for accessibility things - if it's going to be our next default editor this kind of settings can be done with shortcuts as well. We may still use functions of tinymce even if the editor is not active and have different buttons for this purpose.