# Module extensions

The here stored scripts are used in various modules.

## Datepicker / Calendar

In /calendar directory there is a small datepicker javascript that can be used to select a date.

## PHPMailer

The PHPMailer Lite class is used for sending of email forms.

## FPDF

With the FPDF class PDFs can be generated with PHP. In the directory /tutorial you will find some examples of using FPDF.

## CKEditor

With the CKEditor textarea is converted into a WYSIWYG editor. This CKEditor version is just a basic version of the text formatting, the output can be in HTML or BBCode.

CKEditor Script Header in the drawers:

<script type="text/javascript" src="includes/modexts/ckeditor/ckeditor.js"></script>

Config for HTML output (set after textarea):

<script type="text/javascript">
/* <![CDATA[ */
CKEDITOR.replace('name-attribute of textarea', {
customConfig : 'html_config.js',
language : 'en'
});
/* ]]> */
</script>

Config for BBCode output (set after textarea):

<script type="text/javascript">
/* <![CDATA[ */
CKEDITOR.replace('name-attribute of textarea', {
customConfig : 'bbcode_config.js',
language : 'en'
});
/* ]]> */
</script>