Public Method Author API

editorApp()

Obtains the instance of the Question Editor API being used.

You would want to use this method to interact with the Widget editor (Questions and Features) and access methods used to directly interact with the Question or Feature being edited.

Examples

var editorApp = authorApp.editorApp();

editorApp.checkValidation();
// Returns: { has_validation: true }

editorApp.attribute('stimulus').getValue();
// Returns: 'This is the content in the Question stimulus.'

Arguments

None.

Return value

object

The interface of the Question Editor app.

  • attribute function

    See the Question Editor API attribute() method for more information.

  • checkValidation function

    See the Question Editor API checkValidation() method for more information.

  • redo function

    See the Question Editor API redo() method for more information.

  • undo function

    See the Question Editor API undo() method for more information.

Was this article helpful?