This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Question Editor API

once()

Set up an one time event listener. Will fire once and then stop listening.

Examples

questionEditorApp.once("editor:ready", function() {
    console.log("The editor has fully loaded.");
}); // Sets up a one-time event listener for the 'editor:ready' event.

Arguments

  • 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?