Merge pull request #804 from MITx/fix/cdodge/cms-multiple-edit-save-bug
fix bug with editing HTML. The save() method should now return a diction...
This commit is contained in:
@@ -376,6 +376,7 @@ def save_item(request):
|
||||
if not has_access(request.user, item_location):
|
||||
raise PermissionDenied()
|
||||
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user