Author API Methods
saveActivity()
Saves the current Activity being edited.
You would want to use this method so that you can programmatically save the Activity being edited with your own save button in your application, for example.
Examples
var hasSaved = authorApp.saveActivity();
console.log(hasSaved);
Arguments
None.
Return value
Type boolean
Returns true
if successful.
Returns false
if unable to save the Activity. For example, when not in the Activity edit view or no changes were made to the Activity.
Caveats
The Activity to be saved is not persisted in the Item bank if config.activity_edit.save.persist
option is false
.