How to use Cute Editor in WAMP x.xx (any version)

Last post 08-06-2009, 4:31 PM by student101. 0 replies.
Sort Posts: Previous Next
  •  08-06-2009, 4:31 PM 54560

    How to use Cute Editor in WAMP x.xx (any version)

    How to use Cute Editor in WAMP x.xx (any version)
    1. Create a new site for your Cute Editor (I used, cutePHP)
    2. Copy the CuteEditor_Files to your new site/folder
    3. Create the folder Uploads like cutePHP/Uploads
    4. Create a file called index.php
    5. Copy and Paste the data below into your new file (index.php) and you're set!
    <?php include_once("CuteEditor_Files/include_CuteEditor.php") ; ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form name="theForm" action="ACTION GOES HERE!" method="post" ID="Form1">
    <h1>Enable All Toolbars</h1>
    <hr>
    <p>This example shows you all the predefined buttons. </p>
    <br />
    <?php
    // I have no clue which of these settings make it work, maybe even all...
    $editor=new CuteEditor();
    $editor->ID="Editor1";
    $editor->Text="Type here";
    $editor->FilesPath="CuteEditor_Files";
    $editor->EditCompleteDocument=true;
    $editor->EditorWysiwygModeCss="php.css";
    $editor->URLType="Absolute";
    $editor->ImageGalleryPath= "/cutePHP/Uploads/"; // <<- notice you need to reference the sites folder for local browsing...
    $editor->FlashGalleryPath= "/cutePHP/Uploads/";
    $editor->MediaGalleryPath= "/cutePHP/Uploads/";
    $editor->FilesGalleryPath = "/cutePHP/Uploads/";
    $editor->ImageGalleryPath = "/cutePHP/Uploads/";
    $editor->EditorBodyStyle="font:normal 12px arial;";
    $editor->EditorWysiwygModeCss="php.css";
    $editor->Draw();
    $editor=null;
    ?>
    </form>
    </body>
    </html>
     
    For the record, I am more than happy with FCKeditor and TinyMCE.
    I've only posted this to help other new Cute Editor users.
     
    Enjoy!
     
     
     
     
    Filed under:
View as RSS news feed in XML