Commit 8bae7785 by Gregory Martin

A11Y Update to wiki edit field.

EDUCATOR-1553
parent c83811f9
......@@ -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