diff --git a/cms/templates/widgets/problem-edit.html b/cms/templates/widgets/problem-edit.html index 8d9255e662..99442c0179 100644 --- a/cms/templates/widgets/problem-edit.html +++ b/cms/templates/widgets/problem-edit.html @@ -1,21 +1,28 @@ <%include file="metadata-edit.html" />
-
-
-
    -
  • -
  • -
  • -
  • -
  • -
- +
+ %if markdown != '' or data == '': +
+
    +
  • +
  • +
  • +
  • +
  • +
+ +
+ + %endif +
- - -
diff --git a/common/lib/xmodule/xmodule/js/src/problem/markdown.coffee b/common/lib/xmodule/xmodule/js/src/problem/markdown.coffee index 6a0c0c0e64..6b87449d83 100644 --- a/common/lib/xmodule/xmodule/js/src/problem/markdown.coffee +++ b/common/lib/xmodule/xmodule/js/src/problem/markdown.coffee @@ -1,6 +1,6 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor constructor: (@element) -> - @edit_box = CodeMirror.fromTextArea($(".edit-box", @element)[0], { + @edit_box = CodeMirror.fromTextArea($(".xml-box", @element)[0], { mode: "xml" lineNumbers: true lineWrapping: true