Getting Started - reated a CuteEditor class object?

Last post 02-18-2009, 3:47 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  02-10-2009, 5:24 PM 48595

    Getting Started - reated a CuteEditor class object?

    Hi there, Sorry for the lame question but I am new to this!
     
    When you install Cute Editor it asks you to do the following
     
    2. Instantiate the CuteEditor class.

    Firstly, you must include the CuteEditor class file. Secondly, you must create a new CuteEditor class object. Finally, you must assign a unique ID to your CuteEditor control, as shown below:

    <?php
             $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->FilesPath="CuteEditor_Files";
             $editor->Draw();
             $editor=null; 

             //use $_POST["Editor1"]to catch the data
    ?>

    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"].
     
    This stuff is already in the index.php file.  WHY do I have to create another file and what do I name the file and what goes in it and where do I put it?

    Finally, when I start Cute using the index.php I get text which is the same as the script above????
     
    Im shore this is basic to those who know, but it is rocket science for a your wantabee.
     
    Please help.
  •  02-18-2009, 3:47 PM 48965 in reply to 48595

    Re: Getting Started - reated a CuteEditor class object?

    1. <?php include_once("CuteEditor_Files/include_CuteEditor.php") ; ?>   
    2. <html>       
    3.     <head>   
    4.     </head>   
    5.      <body>   
    6.     <form name="theForm" action="/Get_HtmlContent.php" method="post">   
    7.         <div align="center">   
    8.           
    9.           <?php   
    10.                 $editor=new CuteEditor();   
    11.                 $editor->ID="Editor1";   
    12.                 $editor->Text="Hello World";        
    13.                 $editor->FilesPath="CuteEditor_Files";   
    14.                 $editor->Draw();   
    15.                 $editor=null;   
    16.                    
    17.                 //use $_POST["Editor1"]to catch the data    
    18.             ?>   
    19.         </div>   
    20.         </form>   
    21.     </body>   
    22. </html>  
    In this a simple page which contains Cute Editor.
     
    Line 1: include the CuteEditor class file.
    Line 9-18: create a new CuteEditor class object
     
    If you have any further questions with the above file, please let me know.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML