Evaluation Options Editor API Events
change
Fires when the author changes the evaluation options.
You would want to be notified about this event firing so that you can save the updated options or update your application's UI to show that they have changed.
When this event fires depends on the editor's variant option. In the default variant, it fires each time the author edits an option. In the modal variant, it fires only when the author selects Confirm Options.
Note In the modal variant, this event does not fire if the author selects Cancel or closes the dialog without confirming.
Examples
// Log the options each time they change
editor.on('change', function (options) {
console.log('options have changed', options);
});
Callback arguments
-
options object
The current evaluation options as a JSON object. See evaluation options for the format.