on - Methods - Question Editor API

Question Editor API Methods


Set up an event listener.


questionEditorApp.on("preview:changed", function() {
    console.log("The preview data was changed.");
}); // Sets up a recurring event listener for the 'preview:changed' event.


  • event_name string

    Name of the event that you want to listen to.

  • event_callback function

    Callback function that will be invoked whenever the event is triggered.

  • context object

    Execution context that will be used for this when the callback function is invoked.

Return value

None (undefined).

Was this article helpful?

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