Skip to content
Chuck Lorenz edited this page May 7, 2015 · 30 revisions

adapt-contrib-text

Text is a presentation component bundled with the Adapt framework.
Its simple purpose is to present text. The text may include HTML.

Visit the Text Wiki for more information about its functionality and for explanations of key properties.

Text in action

##Installation

As one of Adapt's core components, Text is included with the installation of the Adapt framework and the installation of the Adapt authoring tool.

  • If Text has been uninstalled from the Adapt framework, it may be reinstalled. With the Adapt CLI installed, run the following from the command line:
    adapt install adapt-contrib-text

    Alternatively, this component can also be installed by adding the following line of code to the adapt.json file:
    "adapt-contrib-text": "*"
    Then running the command:
    adapt install
    (This second method will reinstall all plug-ins listed in adapt.json.)

  • If Text has been uninstalled from the Adapt authoring tool, it may be reinstalled using the Plug-in Manager.

Settings overview

The attributes listed below are used in components.json to configure Text, and are properly formatted as JSON in example.json. Visit the Text wiki for more information about how they appear in the authoring tool.

Attributes

core model attributes: These are inherited by every Adapt component. Read more.

_component (string): This value must be: text.

_classes (string): CSS class name to be applied to [core plug-in]’s containing div. The class must be predefined in one of the Less files. Separate multiple classes with a space.

_layout (string): This defines the horizontal position of the component in the block. Values can be full, left or right.

Limitations

Browser spec

This component has been tested to the standard Adapt browser specification.


Version number:
Framework versions:
Author / maintainer: Adapt Core Team
Accessibility support: WAI AA
RTL support: yes
Cross-platform coverage:

Clone this wiki locally