Public Method Author API

getItemSource()

Gets the current source of the Item being edited. The source field can be used by Authors to provide information on the source of the Item's content, for example, the textbook where the material originated.

You would want to use this method so that you can compile a bibliography of sources for the current assessment, for example.

Examples

var itemSource = authorApp.getItemSource();
console.log(itemSource);

Arguments

None.

Return value

  • string

    The source for the current Item.

  • boolean

    Returns false if not in the Item editor view.

Related articles

Was this article helpful?