Re: Replacing editor in news publishing program

  •  10-02-2007, 8:56 PM

    Re: Replacing editor in news publishing program

    Capper:
    K, our server is running PHP V5.0.......here is the problem, we're using Vivvo (their editor sucks)....

    I saw the instructions, and understand that I need to delete all reference java scripts for their editor, but how do I replace it in the files with Cute Editor?


    I put the Cute Editor folder in the /public/_html/admin folder of the CMS I'm using (same directory as the TinyMCE folder)?

    after creating the PHP file:
    <?php
             $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->FilesPath="public_html/admin/CuteEditor_Files";
             $editor->Draw();
             $editor=null; 

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


    I put that in the same directory (/public_html/admin/Editor1.php)


    This part stumped me........


    "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 1: 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."

    Can you explain this in maybe a little simpler terms?

     
    Capper,
     
    Are you able to run Cute Editor in your system sucessfully?
     
    If so, all you need to do is making sure your Cute Editor ID is same as existing ID of your textarea.
     
    For example:
     
    If you have the following code:
     
    <textarea id="elm2" name="elm2" rows="15" cols="32">
     
    </textarea>
     
    And you want to replace it with Cute Editor, You need to do:
     
    <?php
             $editor=new CuteEditor();
             $editor->ID="elm2";
             $editor->Text="Type here";
             $editor->FilesPath="public_html/admin/CuteEditor_Files";
             $editor->Draw();
             $editor=null; 

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

    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 Complete Thread