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
94696786
Commit
94696786
authored
Jan 08, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge in Don's change.
parent
f616aecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
+11
-3
No files found.
common/lib/xmodule/xmodule/js/src/problem/edit.coffee
View file @
94696786
...
...
@@ -70,9 +70,17 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
save
:
->
$body
.
off
(
'click'
,
'.editor-tabs .tab'
,
@
changeEditor
)
$body
.
off
(
'click'
,
'.editor-bar a'
,
@
onToolbarButton
);
$body
.
off
(
'click'
,
'.cheatsheet-toggle'
,
@
toggleCheatsheet
);
data
:
@
xml_editor
.
getValue
()
$body
.
off
(
'click'
,
'.editor-bar a'
,
@
onToolbarButton
)
$body
.
off
(
'click'
,
'.cheatsheet-toggle'
,
@
toggleCheatsheet
)
# TODO when logic is in place to remove the markdown if xml is edited, ensure this doesn't overwrite that
if
@
current_editor
==
@
markdown_editor
{
data
:
MarkdownEditingDescriptor
.
markdownToXml
(
@
markdown_editor
.
getValue
())
metadata
:
markdown
:
@
markdown_editor
.
getValue
()
}
else
data
:
@
xml_editor
.
getValue
()
@
insertMultipleChoice
:
(
selectedText
)
->
return
MarkdownEditingDescriptor
.
insertGenericChoice
(
selectedText
,
'('
,
')'
,
MarkdownEditingDescriptor
.
multipleChoiceTemplate
)
...
...
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