Documentation

Paragraph

Description

The Paragraph module allows a student to enter a free form text. It also allows providing basic formatting in a WYSIWYG way (similar to MS Word and other rich text editors).

Properties

Property name Description
Default font family Set the default font family for the editor body. The value should be expressed in the same way as in CSS. It is a comma separated list of font names.
For example: Helvetica, Arial, Verdana.
For more information, visit http://www.w3schools.com/cssref/pr_font_font-family.asp
Default font size Set the default font size for the editor body. The value should be expressed in the same way as in CSS. It is a numeric value with a unit.
For example: 14px, 3em.
For more information, please visit http://www.w3schools.com/cssref/pr_font_font-size.asp
Hide toolbar Hides a toolbar and so extends the editable area space
Editable placeholder Makes placeholder editable, so it's contents will not be cleared on the focus on the module
Custom toolbar Enables to define a custom toolbar. Below is a list of all available toolbar/menu controls that you can add to your Paragraph addon:

newdocument bold italic underline strikethrough alignleft aligncenter alignright alignjustify styleselect formatselect fontselect fontsizeselect bullist numlist outdent indent blockquote undo redo removeformat subscript superscript

Note: Use pipe "|" to group buttons.
Custom CSS This property enables you to specify a separate file with custom CSS styles that extend the main CSS content. This CSS file is the one used within the editor (the editable area).
If "Default font family" and "Default font size" are defined, they have higher priority than styles used in Custom CSS file.

This property allows online resources. Find out more ยป

Placeholder text This property enables you to specify a free text content to be used as a placeholder in Paragraph. Allows for html styling.

Supported commands

Command name Params Description
show --- shows the module
hide --- hides the module
isVisible --- returns true if module is visible, otherwise false
getText --- returns module content
setText text Sets the content of the module to the text given as parameter
isAttempted --- returns true if any text was inserted

Scoring

This module does not provide any score information.

Events

This module does not generate any events.

Demo presentation

Demo presentation contains examples of the Paragraph addon's usage.