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
e86ff28f
Commit
e86ff28f
authored
Aug 19, 2016
by
Andy Armstrong
Committed by
GitHub
Aug 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13260 from edx/bjacobel/discussions-markdown
A11Y fixes for discussions markdown editor
parents
ce0009ab
50dab158
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
lms/static/coffee/src/customwmd.coffee
+2
-0
lms/static/js/Markdown.Editor.js
+1
-2
lms/static/sass/discussion/_discussion.scss
+2
-6
lms/static/sass/discussion/elements/_editor.scss
+7
-2
No files found.
lms/static/coffee/src/customwmd.coffee
View file @
e86ff28f
...
...
@@ -127,6 +127,8 @@ if Markdown?
_append
=
appended_id
||
""
wmdInputId
=
"wmd-input
#{
_append
}
"
$wmdPreviewContainer
=
$
(
"<div>"
).
addClass
(
"wmd-preview-container"
)
.
attr
(
"role"
,
"region"
)
.
attr
(
"aria-label"
,
gettext
(
"HTML preview of post"
))
.
append
(
$
(
"<div>"
).
addClass
(
"wmd-preview-label"
).
text
(
gettext
(
"Preview"
)))
.
append
(
$
(
"<div>"
).
attr
(
"id"
,
"wmd-preview
#{
_append
}
"
).
addClass
(
"wmd-panel wmd-preview"
))
$wmdPanel
=
$
(
"<div>"
).
addClass
(
"wmd-panel"
)
...
...
lms/static/js/Markdown.Editor.js
View file @
e86ff28f
...
...
@@ -1434,8 +1434,7 @@
buttonRow
=
buttonBar
.
appendChild
(
buttonRow
);
var
xPosition
=
0
;
var
makeButton
=
function
(
id
,
title
,
XShift
,
textOp
)
{
var
button
=
document
.
createElement
(
'span'
);
button
.
setAttribute
(
'role'
,
'button'
);
var
button
=
document
.
createElement
(
'button'
);
button
.
tabIndex
=
0
;
button
.
className
=
'wmd-button'
;
button
.
style
.
left
=
xPosition
+
'px'
;
...
...
lms/static/sass/discussion/_discussion.scss
View file @
e86ff28f
...
...
@@ -106,15 +106,15 @@ body.discussion {
}
.wmd-button
{
@include
padding-right
(
3px
);
@include
padding-left
(
3px
);
position
:
absolute
;
display
:
inline-block
;
width
:
20px
;
height
:
20px
;
border
:
none
;
background
:
none
;
list-style
:
none
;
cursor
:
pointer
;
padding
:
0
;
}
.wmd-button
>
span
{
...
...
@@ -288,10 +288,6 @@ body.discussion {
@include
blue-button
;
@include
float
(
left
);
}
.wmd-button
{
width
:
15px
;
}
}
// ====================
...
...
lms/static/sass/discussion/elements/_editor.scss
View file @
e86ff28f
...
...
@@ -87,13 +87,18 @@
.wmd-button
{
position
:
absolute
;
display
:
inline-block
;
padding-right
:
3px
;
padding-left
:
2px
;
width
:
20px
;
height
:
20px
;
border
:
none
;
background
:
none
;
list-style
:
none
;
cursor
:
pointer
;
padding
:
0
;
}
.wmd-button
:hover
{
background
:
none
;
box-shadow
:
none
;
}
.wmd-button
>
span
{
...
...
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