custom_question_types.editor_schema.attributes.my_custom_attribute_name.asset - Initialization - Question Editor API

Question Editor API Initialization

asset

If the type property is set to "string", you can specify this property to allow media upload.

Examples

"src": {
    "name": "Add image",
    "type": "string",
    "asset": {
        "mediaType": "image",
        "returnType": "URL"
    }
    "required": false,
    "description": "An image can be uploaded to appear as a grid background."
}

Values

Attribute path custom_question_types.editor_schema.attributes.my_custom_attribute_name.asset

Type object

Properties

  • mediaType string

    The media type of the asset.

    Possible values

    • "image"
    • "audio"
    • "video"
  • returnType string

    The return type of the asset.

    Possible values

    • "URL"
    • "HTML"
    • "UrlHeightWidth"
Was this article helpful?

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