How to make some text in HTML tab not editable

Last post 07-17-2010, 2:47 AM by Kenneth. 6 replies.
Sort Posts: Previous Next
  •  07-15-2010, 12:01 PM 62516

    How to make some text in HTML tab not editable

    Does Cute support the following feature in CuteEditor 6.4 for .net 1.0 and .net 3.5:
     
    Use go to HTML tab in Cute Editor to modify  the content, but we don't want user to modify certain content, such as the article title. Is there a way to make certain text in HTML tab not editable?
     
    Thanks, Qian
  •  07-15-2010, 4:33 PM 62521 in reply to 62516

    Re: How to make some text in HTML tab not editable

    CuteEditor can run in .net framework 1.x, 2.0, and 3.5.
    If you do not want to let user edit some content, you can use these two attributes: CONTENTEDITABLE and UNSELECTABLE. Detailed document can be found in http://cutesoft.net/developer+guide/scr/Add-uneditable-regions-to-a-Template.htm. User still can edit html code when switch to "HTML" unless you hide "HTML" mode tab.

     
    Regards,
    Eric 
  •  07-15-2010, 6:16 PM 62524 in reply to 62521

    Re: How to make some text in HTML tab not editable

    Thanks for the reply, Eric. I have already done CONTENTEDITABLE and UNSELECTABLE on the "Normal" tab,  we also want to do the same on the "HTML" tab, I don't want to hide HTML tab, just want to disable editing capability on some content, but allow user to edit other content. Is there anyway I can achieve this in CuteEditor?
     
    Thanks, Qian
     
  •  07-16-2010, 9:48 AM 62535 in reply to 62524

    Re: How to make some text in HTML tab not editable

    qngenera2010:
    Thanks for the reply, Eric. I have already done CONTENTEDITABLE and UNSELECTABLE on the "Normal" tab,  we also want to do the same on the "HTML" tab, I don't want to hide HTML tab, just want to disable editing capability on some content, but allow user to edit other content. Is there anyway I can achieve this in CuteEditor?
     
    Thanks, Qian
     
     
    Non-Editable feature is not available in HTML view.

    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

  •  07-16-2010, 12:52 PM 62540 in reply to 62535

    Re: How to make some text in HTML tab not editable

    Thanks for your reply, Adam.
     
    Regards, Qian
  •  07-16-2010, 12:55 PM 62541 in reply to 62540

    Re: How to make some text in HTML tab not editable

    So How do I show/hide the "HTML" tab
    programmatically? We want to show/hide the "HTML" tab based on user's permission which is configurable.
     
    Thanks, Qian

  •  07-17-2010, 2:47 AM 62545 in reply to 62541

    Re: How to make some text in HTML tab not editable

    qngenera2010:
    So How do I show/hide the "HTML" tab
    programmatically? We want to show/hide the "HTML" tab based on user's permission which is configurable.
     
    Thanks, Qian

     
    Hi qngenera2010,
     
    Please try the example below, it show you how to show and hide the html tab programmatically.
     
    1. <%@ Page Language="C#"  %>   
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5. <html xmlns="http://www.w3.org/1999/xhtml">   
    6. <head id="Head1" runat="server">   
    7.     <title>Untitled Page</title>   
    8. </head>   
    9.   
    10. <script runat="server">   
    11.     protected void showHtmlView_Click(object sender, EventArgs e)   
    12.     {   
    13.         Editor1.ShowHtmlMode = true;   
    14.     }   
    15.   
    16.     protected void hideHtmlView_Click(object sender, EventArgs e)   
    17.     {   
    18.         Editor1.ShowHtmlMode = false;   
    19.     }   
    20. </script>   
    21.   
    22. <body>   
    23.     <form id="form1" runat="server">   
    24.         <CE:Editor ID="Editor1" runat="server">   
    25.         </CE:Editor>   
    26.         <asp:Button ID="showHtmlView" runat="server" Text="show html tab" OnClick="showHtmlView_Click" />   
    27.         <asp:Button ID="hideHtmlView" runat="server" Text="hide html tab" OnClick="hideHtmlView_Click" />   
    28.     </form>   
    29. </body>   
    30. </html>  
    Regards,
     
    ken
View as RSS news feed in XML