tool bar still appears when editor.enable=false

Last post 04-16-2010, 1:50 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  04-15-2010, 1:26 AM 60125

    tool bar still appears when editor.enable=false

    This looks strange as the editor is not allowed to do anything there, why we still show the user the toolbar? (although it's disabled)
     
    I tried:
    editor1.showtoolbar=false
     
    but it doesn't work. It's ok in your demo page. But with the latest version 6.6, it doesn't work.
     
    can anyone help?
  •  04-15-2010, 7:43 AM 60135 in reply to 60125

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

    Dear wolf11th,
     
    Online demo can be found in http://www.richtextbox.com/test/ShowToolBar.aspx, that is latest version.
     
    Regards,
    Eric
  •  04-15-2010, 6:31 PM 60162 in reply to 60135

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

    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
     
  •  04-16-2010, 1:50 AM 60165 in reply to 60162

    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 as RSS news feed in XML