Multiple Instances of Cute Editor

Last post 11-04-2010, 3:50 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  11-03-2010, 5:12 PM 64868

    Multiple Instances of Cute Editor

    I just downloaded a trial version of CE for .Net. What I need to be able to do for a new website project I'm just starting on is to have multiple containers (divs) on most pages of this site, into which the user can insert dynamic content as needed. I'm hoping to use Cute Editor for that purpose.
     
    1. Is this fairly easily doable with a licensed version of CE for one domain?
     
    2. If so,  what is the best way to accomplish that in ASP.net? I am planning to store the entries in a sql database, so I'll obviously have to store a unique div tag id for each unique entry so I can know where to put the data.
     
    Thanks for any help with that, as I am new to using this tool.
  •  11-04-2010, 3:50 AM 64872 in reply to 64868

    Re: Multiple Instances of Cute Editor

    Hi HarryV,
     
    1. Is this fairly easily doable with a licensed version of CE for one domain?
     
     yes, you just need to follow http://www.cutesoft.net/developer+guide/scr/Deployment.htm to deploy CuteEditor on your site. And then follow steps 4 to put editor into any page you need.
     
    2. If so,  what is the best way to accomplish that in ASP.net? I am planning to store the entries in a sql database, so I'll obviously have to store a unique div tag id for each unique entry so I can know where to put the data. 
     
    CuteEditor contains a "Save" button in the toolbar, you can easily to capture the SAVE button click event. like the example below.
     
    So you can store the entries separately into the database and not affect each other.
    1. <%@ Page Language="C#" AutoEventWireup="true" %>  
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5.   
    6. <script runat="server">  
    7.   
    8.     protected void editor1_PostBackCommand(object sender, CommandEventArgs e)  
    9.     {  
    10.         //save into database  
    11.         label1.Text = editor1.Text;  
    12.     }  
    13. </script>  
    14.   
    15. <html xmlns="http://www.w3.org/1999/xhtml">  
    16. <head id="Head1" runat="server">  
    17.     <title></title>  
    18. </head>  
    19. <body>  
    20.     <form id="form1" runat="server">  
    21.         <asp:Label ID="label1" runat="server"></asp:Label>  
    22.         <CE:Editor ID="editor1" runat="server" OnPostBackCommand="editor1_PostBackCommand">  
    23.         </CE:Editor>  
    24.     </form>  
    25. </body>  
    26. </html>  
     Keep me posted if you have more questions or the above info is not enough.
     
    Regards,
     
    ken 
View as RSS news feed in XML