Extensions add specific functionality to Learnosity APIs. They rely on modules within LT being available.
--
Validates that all required tags are present before publishing an item.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Object of configuration options. Properties
|
Example
const options = {
heading: 'Required tag{s} missing',
headingLevel: 3,
messageStart: 'Please add the following tag{s} before publishing:',
messageEnd: '',
requiredTags: [],
}
LT.init(authorApp, {
extensions: [
{ id: 'requiredTags', args: options },
],
});