Commit a60ec13d by Chris Dodge

fix bug with editing HTML. The save() method should now return a dictionary, not a string

parent 425e840e
......@@ -364,6 +364,7 @@ def save_item(request):
if not has_access(request.user, item_location):
raise Http404 # TODO (vshnayder): better error
logging.debug(request.POST['data'])
if request.POST['data']:
data = request.POST['data']
modulestore().update_item(item_location, data)
......
......@@ -4,4 +4,6 @@ class @HTMLEditingDescriptor
mode: "text/html"
})
save: -> @edit_box.getValue()
save: ->
data: @edit_box.getValue()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment