Apply CKEditor to a textarea in php

06/04/2012

<textarea cols="80" id="editor1" name="editor1" rows="10">lol</textarea>
    <?php
    // Include the CKEditor class.
    include_once "../../ckeditor.php";
    // Create a class instance.
    $CKEditor = new CKEditor();
    $CKEditor->config['width'] = 600;
    $CKEditor->config['toolbar'] = array(
    array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ),
    array( 'Link', 'Unlink' ));
    $CKEditor->replace("editor1");
    ?>