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
df96c17e
Commit
df96c17e
authored
Apr 16, 2014
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed toggle cheatsheet not working on component editors.
STUD-1514
parent
97d587c4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
7 deletions
+20
-7
cms/djangoapps/contentstore/features/problem-editor.feature
+5
-0
cms/djangoapps/contentstore/features/problem-editor.py
+7
-0
cms/static/sass/elements/_modal-window.scss
+1
-1
common/lib/xmodule/xmodule/css/combinedopenended/edit.scss
+2
-3
common/lib/xmodule/xmodule/css/problem/edit.scss
+2
-3
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
+3
-0
No files found.
cms/djangoapps/contentstore/features/problem-editor.feature
View file @
df96c17e
...
...
@@ -113,6 +113,11 @@ Feature: CMS.Problem Editor
And
I unpublish the unit
Then
I can edit the problem
Scenario
:
Cheat sheet visible on toggle
Given
I have created a Blank Common Problem
And
I can edit the problem
Then
I can see cheatsheet
# Disabled 11/13/2013 after failing in master
# The screenshot showed that the LaTeX editor had the text "hi",
# but Selenium timed out waiting for the text to appear.
...
...
cms/djangoapps/contentstore/features/problem-editor.py
View file @
df96c17e
...
...
@@ -250,6 +250,13 @@ def i_can_edit_problem(_step):
world
.
edit_component
()
@step
(
u'I can see cheatsheet$'
)
def
verify_cheat_sheet_displaying
(
_step
):
world
.
css_click
(
"a.cheatsheet-toggle"
)
css_selector
=
'article.simple-editor-cheatsheet'
world
.
wait_for_visible
(
css_selector
)
def
verify_high_level_source_links
(
step
,
visible
):
if
visible
:
assert_true
(
world
.
is_css_present
(
'.launch-latex-compiler'
),
...
...
cms/static/sass/elements/_modal-window.scss
View file @
df96c17e
...
...
@@ -107,7 +107,7 @@
// large modals - component editors and interactives
.modal-lg
{
width
:
7
5
%
;
width
:
7
0
%
;
min-width
:
(
$baseline
*
27
.5
);
height
:
auto
;
...
...
common/lib/xmodule/xmodule/css/combinedopenended/edit.scss
View file @
df96c17e
...
...
@@ -51,14 +51,13 @@
@include
transition
(
width
.3s
linear
0s
);
&
.shown
{
width
:
300px
;
width
:
20%
;
height
:
100%
;
overflow-y
:
scroll
;
}
.cheatsheet-wrapper
{
width
:
240px
;
padding
:
20px
30px
;
padding
:
10%
;
}
h6
{
...
...
common/lib/xmodule/xmodule/css/problem/edit.scss
View file @
df96c17e
...
...
@@ -51,14 +51,13 @@
@include
transition
(
width
.3s
linear
0s
);
&
.shown
{
width
:
300px
;
width
:
20%
;
height
:
100%
;
overflow-y
:
scroll
;
}
.cheatsheet-wrapper
{
width
:
240px
;
padding
:
20px
30px
;
padding
:
10%
;
}
h6
{
...
...
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
View file @
df96c17e
...
...
@@ -94,6 +94,9 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
@
cheatsheet
=
$
(
$
(
'#simple-editor-cheatsheet'
).
html
())
$
(
@
markdown_editor
.
getWrapperElement
()).
append
(
@
cheatsheet
)
$
(
".CodeMirror"
).
css
({
"overflow"
:
"visible"
})
$
(
".modal-content"
).
css
({
"overflow-y"
:
"visible"
,
"overflow-x"
:
"visible"
})
setTimeout
(
=>
@
cheatsheet
.
toggleClass
(
'shown'
)),
10
###
...
...
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