config.locked_edit_mode - Initialization - Author API

Author API Initialization

locked_edit_mode

Controls whether Author API is initialized in locked edit mode.

This mode restricts a user to only be able to view and edit the content of the single Item or Activity specified in the reference initialization option.

Note The reference of this Item/Activity cannot be changed, nor can the Item/Activity be duplicated.

Examples

// Lock author api in Item/Activity edit mode
var initializationOptions = {
    "config": {
        "mode": "item_edit", // Could also be "activity_edit"
        "reference": "item_1", // Could also be the reference of an Activity
        "locked_edit_mode": {
            "enable": true
        }
    }
};

Values

Attribute path config.locked_edit_mode

Type object

Properties

  • enable boolean

    You can only set this to true if the Author API was initialized in "item_edit" or "activity_edit" mode.

Was this article helpful?

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