Re: tool bar still appears when editor.enable=false

  •  04-16-2010, 1:50 AM

    Re: tool bar still appears when editor.enable=false

    wolf11th:
    Hi Eric,
    thx for your reply
    if I remove  the configurationPath, how can I customise the toolbar?
    The idea is on the back end, our system check the user level, if the user is read only, it needs to disable the editor. If not, it will still show the user the toolbar. So I think I still need to specify the tool configuration path.
     
    I found a work around: when I want to disable the editor, I have to:
     
    cmsInformation.ConfigurationPath = ""
    cmsInformation.ShowToolBar = False
    cmsInformation.Enabled = False
     
    this is still annoying as you cannot just set the showtoolbar = false without taking off the toolbar customisation. either, it doesn't make sence that if I disable the editor what is the point to show the user the toolbar as it's disabled as well?
     
    hardly to say it's a bug, but for user's convienience, can you improve it at next version?
     
    thx again
     
     
    Hi wolf11th,
     
    We will fix this issue in next version.
     
    For now you can try this solution
     
    1. <%@ Page Language="C#" %>   
    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. <html xmlns="http://www.w3.org/1999/xhtml">   
    6. <head runat="server">   
    7.     <title>Untitled Page</title>   
    8. </head>   
    9.   
    10. <script runat="server">   
    11.     protected void btnShow_Click(object sender, EventArgs e)   
    12.     {   
    13.         Editor1.TemplateItemList = "";   
    14.     }   
    15.     protected void btnHide_Click(object sender, EventArgs e)   
    16.     {   
    17.         Editor1.TemplateItemList = "test";   
    18.         //string 'test' can be any value   
    19.   
    20.     }   
    21. </script>   
    22.   
    23. <body>   
    24.     <form id="form1" runat="server">   
    25.         <CE:Editor ID="Editor1" runat="server" ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Simple.config">   
    26.         </CE:Editor>   
    27.         <asp:Button ID="btnShow" runat="server" Text="ShowToolbar" OnClick="btnShow_Click" />   
    28.         <asp:Button ID="btnHide" runat="server" Text="HideToolbar" OnClick="btnHide_Click" />   
    29.     </form>   
    30. </body>   
    31. </html>  
    Regards,
     
    Ken
View Complete Thread