callbacks - Author API

Callbacks

The callbacks object contains optional callback functions that allow detection of the 'ready' status of a Author API instance and any errors encountered.

These events can be handled by defining a readyListener function and an errorListener function respectively.

  • errorListener function

    This function is called when one of the preset Learnosity API errors are thrown.

  • readyListener function

    This function is called when the API has been successfully initialized.

  • assetRequest function

    Integrate your own digital asset management (DAM) system to use your own media content in Questions and Features.

  • customButtons array

    Allows you to add custom buttons to the rich text editor toolbar used in the Widget (Questions or Features) editor view.

Was this article helpful?

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