Public Method Author API

editItem()

Navigates to the Item editor and loads the sepecified Item.

You would want to use this method so that you can build a custom Item edit button in your own application, for example.

Examples

authorApp.editItem('My Item reference to edit');

Arguments

  • itemReference string

    The Item reference used to identify the Item.

    Maximum length is 150 characters.

  • create boolean

    This controls what happens when the passed itemReference does not match the reference of an existing Item in the Item bank.

    If set to true, a new Item will be created with the passed itemReference as its reference. If false or no value is passed, the operation will fail with an error.

    This argument is not supported in the Activity edit view.

Return value

None (undefined).

Related articles

  • The createItem() method, which navigates to a new Item editor view, ready for an author to create a new Item.