Extensions/Authoring/essayMaxLength

Extensions add specific functionality to Learnosity APIs. They rely on modules within LT being available.

--

Adds custom validation to ensure that only numbers are added to the max_length field for the listed types.

The extension will strip any invalid characters. Eg:

10.5

Will be changed to:

10

If the value contains leading zeros, the input field will be styled with a red border.

Methods

run()

Extension constructor.

Since
2.4.0
Example
import { LT } from '@caspingus/lt/src/authoring/index';

LT.init(authorApp); // Set up LT with the Author API application instance variable
LT.extensions.essayMaxLength.run();