Re: Samples using Cute Asp

  •  06-09-2005, 4:31 AM

    Re: Samples using Cute Asp

    There are a number of examples on this site - see the Online Demos here: http://cutesoft.net/asp/EnableAll.asp
     
    Here's a simple step-by-step:
     
    1. Upload the CuteEditor files to your server.
     
    2. Create a directory called Uploads at the root of your web site on the server.
     
    3. Now in the page where you want to add the editor, put as the first line: 

    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" --

    You will probably need to modify the path, eg to "Cute/CuteEditor_Files/include_CuteEditor.asp"
     
    4. Replace the <textarea> .... <\textarea> tag on your existing form with the code:
     
    <%
    Dim editor
    Set editor = New CuteEditor
    editor.ID = "textbody"
    editor.Text = "..."
    editor.FilesPath = "/ASP/CuteEditor_Files"
    editor.ImageGalleryPath = "/Uploads"
    editor.MaxImageSize = 50
    editor.AutoConfigure = "EnableAll"
    editor.Draw()
    %>

    Again, you will probably need to modify the paths. And that's it.  

    So to get text from your database into the editor, change the above to say for example:

    editor.Text = myRs.Fields("textbody").value

    Then you update the database just like you did with the textarea, using the editor.ID instead of the TextArea name, and you can just refer to it like before with response.form("textbody").
     
View Complete Thread