request - Question Editor API

The Initialization object allows several UI and Question type customizations definable by the host environment. This is possible using the structure described below.

Properties

= mandatory property

  • assetRequest function

    If defined the Editor will display a directory/file icon.

  • base_question_type object

    Use this config option to modify the behaviour and appearance of all question types.

  • configuration object

    An object containing app configuration.

  • custom_question_types object

    This config allows you to use Question Editor as a WYSIWYG tool for creating and previewing custom feature content.

  • custom_feature_types object

    This config allows you to use Question Editor as a WYSIWYG tool for creating and previewing custom feature content.

  • custom_metadata object

    You can use custom metadata to store additional information relating to a question.

  • dependencies object

    An object containing Questions API settings.

  • group_defaults boolean

    This config option allows you to show or hide the "default" Learnosity template groups in the tile view (for example, Multiple Choice, Fill in the Blanks (Cloze)).

  • label_bundle object

    Overrides the Question Editor API text labels.

  • premium object

    Some of the question types, or features are defined as premium, and therefore are hidden from authoring unless explicitly enabled.

  • question_types object

    Use this config option to modify the behaviour and appearance of Learnosity's question types.

  • question_type_groups array

    Use this config option to change the default widget type groups shown in the tile view (for example, Multiple Choice, Fill in the Blanks (Cloze)).

  • question_type_templates object

    Optional object to customize question type templates.

  • simple_feature_templates array

    Optional array of objects to customize simple feature templates within the simple feature modal as listed in the simple feature modal article.

  • rich_text_editor object

    This is the initialization option which determines the rich text editor that will be used by the Question Editor API.

  • template_defaults boolean

    This config option allows you to selectively show or hide the "default" Learnosity templates in the tile view (E.

  • ui object

    A list of options to customize visual elements of Question Editor.

  • widget_json QuestionJson | FeatureJson

    JSON used to initialize the Question Editor with pre-existing content.

  • widget_metadata object

    An option to be used in conjunction with widget_json.

  • widget_type string

    Determines which supported Learnosity widget type definitions will be loaded in tile view.

Was this article helpful?

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