Unverified Commit a285ed08 by Gregory Martin Committed by GitHub

Merge pull request #16386 from edx/yro/a11y_audit_1553

A11Y Update to wiki edit field.
parents 6a1d5e6a 8bae7785
......@@ -11,8 +11,12 @@ from wiki.editors.markitup import MarkItUpAdminWidget
class CodeMirrorWidget(forms.Widget):
def __init__(self, attrs=None):
# The 'rows' and 'cols' attributes are required for HTML correctness.
default_attrs = {'class': 'markItUp',
'rows': '10', 'cols': '40', }
default_attrs = {
'class': 'markItUp',
'rows': '10',
'cols': '40',
'aria-describedby': 'hint_id_content'
}
if attrs:
default_attrs.update(attrs)
super(CodeMirrorWidget, self).__init__(default_attrs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment