Bug fix of activity submission in public/javascripts/activity/editor.js.