diff --git a/common/lib/xmodule/xmodule/js/src/problem/edit.coffee b/common/lib/xmodule/xmodule/js/src/problem/edit.coffee index a5c2f26aa6..910b670e16 100644 --- a/common/lib/xmodule/xmodule/js/src/problem/edit.coffee +++ b/common/lib/xmodule/xmodule/js/src/problem/edit.coffee @@ -13,16 +13,9 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor @markdown_editor = CodeMirror.fromTextArea($(".markdown-box", element)[0], { lineWrapping: true mode: null - onChange: @onMarkdownEditorUpdate }) @setCurrentEditor(@markdown_editor) - onMarkdownEditorUpdate: -> - console.log('update') - @updateXML() - - updateXML: -> - changeEditor: (e) => e.preventDefault(); $('.editor-tabs .current').removeClass('current') @@ -32,7 +25,7 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor # onMarkdownEditorUpdate(); else @setCurrentEditor(@xml_editor) - # xmlEditor.refresh(); + @xml_editor.setValue(MarkdownEditingDescriptor.markdownToXml(@markdown_editor.getValue())) setCurrentEditor: (editor) -> $(@current_editor.getWrapperElement()).hide() diff --git a/common/lib/xmodule/xmodule/templates/problem/optionresponse.yaml b/common/lib/xmodule/xmodule/templates/problem/optionresponse.yaml index 178a359d45..ec88fdf68c 100644 --- a/common/lib/xmodule/xmodule/templates/problem/optionresponse.yaml +++ b/common/lib/xmodule/xmodule/templates/problem/optionresponse.yaml @@ -3,26 +3,26 @@ metadata: display_name: Option Response rerandomize: never showanswer: always - markdown: " -
OptionResponse gives a limited set of options for students to respond with, and presents those options - in a format that encourages them to search for a specific answer rather than being immediately presented with options from which to recognize the correct answer.
- -- The answer options and the identification of the correct answer is defined in the optioninput tag. -
-Translation between Option Response and __________ is extremely straightforward:
-
-
Explanation
-Multiple Choice also allows students to select from a variety of pre-written responses, although the format makes it easier for students to read very long response options. Optionresponse also differs slightly because students are more likely to think of an answer and then search for it rather than relying purely on recognition to answer the question.
-OptionResponse gives a limited set of options for students to respond with, and presents those options +# in a format that encourages them to search for a specific answer rather than being immediately presented with options from which to recognize the correct answer.
+# +#+# The answer options and the identification of the correct answer is defined in the optioninput tag. +#
+#Translation between Option Response and __________ is extremely straightforward:
+#
+#
Explanation
+#Multiple Choice also allows students to select from a variety of pre-written responses, although the format makes it easier for students to read very long response options. Optionresponse also differs slightly because students are more likely to think of an answer and then search for it rather than relying purely on recognition to answer the question.
+#OptionResponse gives a limited set of options for students to respond with, and presents those options