## Installation Guide

The following guide shows the steps to implement a RichTextEditor Control into PHP applications. If you haven't downloaded the software, please download it from here.

### 1. Install RTE

The "richtexteditor" folder and all files it contains should be deployed to the application directory of your website.

### 2. Using the Editor in a PHP page

    // Register Editor component to your page
    <?php require_once "richtexteditor/include_rte.php" ?>
    <html>
    <body>
            <form id="form1" method="POST">
                <?php
                    // Create Editor instance and use Text property to load content into the RTE.
                    $rte=new RichTextEditor();
                    $rte->Text="Type here";
                    // Set a unique ID to Editor
                    $rte->ID="Editor1";
                    $rte->MvcInit();
                    // Render Editor
                    echo $rte->GetString();
                ?>
            </form>
    </body>
    </html>

### 3. Retrieving the RTE content

You can retrieve the RTE contents using the $_POST array. The name of the variable in the $_POST array will be RTE ID. For example if your RTE class ID is "Editor1", the variable would be $_POST["Editor1"].