Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a285ed08
Unverified
Commit
a285ed08
authored
Nov 02, 2017
by
Gregory Martin
Committed by
GitHub
Nov 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16386 from edx/yro/a11y_audit_1553
A11Y Update to wiki edit field.
parents
6a1d5e6a
8bae7785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lms/djangoapps/course_wiki/editors.py
+6
-2
No files found.
lms/djangoapps/course_wiki/editors.py
View file @
a285ed08
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment