save - Events - Author Aide API

Author Aide API Events

save

Fires when a save operation is initiated in the Author Aide API.

You would want to be notified about this event firing, because you might want to show a loading indicator or disable certain UI elements while the save operation is in progress.

Examples

authorAideApp.on('save', function (event) {
    console.log('This code executes when a save operation is initiated.');
    console.log('Item reference(s):', event.itemReference);
    console.log('Current path:', event.currentPath);
    console.log('Save mode:', event.mode);
});

Callback arguments

  • itemReference string array[string]

    The reference of the Item being saved.

    An array of Item references for bulk save operations.

  • currentPath string

    The current path where save was initiated.

  • mode string

    The save mode indicating the type of operation being performed.

    Possible values

    • "generate" Content generation operation
    • "translate" Translation operation
    • "edit" Manual editing operation
    • "bulk" Bulk operation on multiple Items
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.