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
2ffe6032
Commit
2ffe6032
authored
Dec 09, 2014
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed CodeMirror editor view height in studio.
TNL-920
parent
f733d1d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
cms/static/sass/elements/_modal-window.scss
+4
-0
common/lib/xmodule/xmodule/js/src/combinedopenended/edit.coffee
+2
-0
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
+2
-0
No files found.
cms/static/sass/elements/_modal-window.scss
View file @
2ffe6032
...
...
@@ -222,6 +222,10 @@
height
:
365px
;
}
.CodeMirror-advanced
{
height
:
435px
;
}
.wrapper-comp-settings
{
.list-input
{
...
...
common/lib/xmodule/xmodule/js/src/combinedopenended/edit.coffee
View file @
2ffe6032
...
...
@@ -62,6 +62,7 @@ Write a persuasive essay to a newspaper reflecting your views on censorship in l
$
(
@
element
.
find
(
'.xml-box'
)).
hide
()
else
@
createXMLEditor
()
@
xml_editor
.
display
.
wrapper
.
className
+=
" CodeMirror-advanced"
;
@
alertTaskRubricModification
()
...
...
@@ -92,6 +93,7 @@ Write a persuasive essay to a newspaper reflecting your views on censorship in l
@
toggleCheatsheetVisibility
()
if
@
confirmConversionToXml
()
@
createXMLEditor
(
OpenEndedMarkdownEditingDescriptor
.
markdownToXml
(
@
markdown_editor
.
getValue
()))
@
xml_editor
.
display
.
wrapper
.
className
+=
" CodeMirror-advanced"
;
# Need to refresh to get line numbers to display properly (and put cursor position to 0)
@
xml_editor
.
setCursor
(
0
)
@
xml_editor
.
refresh
()
...
...
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
View file @
2ffe6032
...
...
@@ -25,6 +25,7 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
$
(
@
element
.
find
(
'.xml-box'
)).
hide
()
else
@
createXMLEditor
()
@
xml_editor
.
display
.
wrapper
.
className
+=
" CodeMirror-advanced"
;
###
Creates the XML Editor and sets it as the current editor. If text is passed in,
...
...
@@ -53,6 +54,7 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
@
toggleCheatsheetVisibility
()
if
@
confirmConversionToXml
()
@
createXMLEditor
(
MarkdownEditingDescriptor
.
markdownToXml
(
@
markdown_editor
.
getValue
()))
@
xml_editor
.
display
.
wrapper
.
className
+=
" CodeMirror-advanced"
;
# Need to refresh to get line numbers to display properly (and put cursor position to 0)
@
xml_editor
.
setCursor
(
0
)
@
xml_editor
.
refresh
()
...
...
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