CuteEditor CuteEditor for ASP | CuteEditor for .NET
Home| Demo| Deployment| Common Tasks| Forums| Feature| Order

Deployment the Cute Editor for PHP

CuteEditor for PHP is a custom PHP class that was developed as a replacement for the standard TextArea tag in content management systems. It is 100% HTML and JavaScript code on the client, and PHP code on the server, and can be setup on your web server in just 5 minutes, simply by following this setup guide.

1. Deploying the CuteEditor Client files.

The "cuteeditor_files" folder and all file it contains (located in the archive) should be deployed to http://{your site}/{your application}/cuteeditor_files/ on your web site.
2. Adding Editor into PHP page.

  1. //Step 1: Register Editor component to your page   
  2. <?php require_once "cuteeditor_files/include_CuteEditor.php" ?>   
  3. <html>   
  4. <body>   
  5.         <form id="form1" method="POST">   
  6.             <?php   
  7.                 //Step 2: Create Editor object.   
  8.                 $editor=new CuteEditor();   
  9.                 $editor->Text="Type here";    
  10.                 //Step 3: Set a unique ID to Editor   
  11.                 $editor->ID="Editor1";    
  12.                 //Step 4: Render Editor   
  13.                 $editor->Draw();   
  14.             ?>   
  15.         </form>   
  16. </body>   
  17. </html>  

Once you've created a CuteEditor class object, you call functions against that object.

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

Note 2: If you want to deploy the CuteEditor Client file to a different location, you will have to make sure that you set your editor FilesPath property correctly. The control expects to find the all the files and images in the files directory specified by the control FilesPath property.