Re: Not seeing how you customize toolbar for instance

  •  02-07-2010, 11:08 PM

    Re: Not seeing how you customize toolbar for instance

    Hi Planet Maine,
     
    Option 1:
     
    Use properties TemplateItemList. The below editor will only show three button in the toolbar.
     
       <CE:Editor ID="editor1" runat="server" TemplateItemList="Save,Find,Copy">
            </CE:Editor>
     
    All button name you can fine in http://www.cutesoft.net/developer+guide/scr/Toolbar_Customization.htm ,Template Item section.
     
    Option 2:
     
    Using config file to customize toolbar, you need to set properties ConfigurationPath,like below.
     
    <CE:Editor ID="editor1" runat="server"   ConfigurationPath="~/test.config" >
            </CE:Editor>
     
    In my case, I create a file name "test.config" under the root of my site.
     
    code of test.config
    1. <?xml version="1.0" encoding="utf-8" ?>  
    2. <configuration>  
    3.   <codeviewToolbars>  
    4.     <item type="g_start" />  
    5.     <item type="image" name="Save" postback="True" />  
    6.     <item type="image" name="Print" />  
    7.     <item type="image" name="Find" />  
    8.     <item type="image" name="ToFullPage" command="FullPage" imagename="fit" hotkey="F12" />  
    9.     <item type="image" name="FromFullPage" command="FullPage" imagename="restore" hotkey="F12" />  
    10.     <item type="image" name="Cut" />  
    11.     <item type="image" name="Copy" />  
    12.     <item type="image" name="Paste" />  
    13.     <item type="image" name="SelectAll" hotkey="CTRL+A" />  
    14.     <item type="image" name="SelectNone" />  
    15.     <item type="g_end" />  
    16.   </codeviewToolbars>  
    17.   <toolbars>  
    18.     <item type="image" name="CleanCode" imagename="cleanup" />  
    19.     <item type="image" name="NetSpell" imagename="spell" />  
    20.     <item type="image" name="Cut" />  
    21.     <item type="image" name="Copy" />  
    22.   </toolbars>  
    23. </configuration>  

    Regards,
     
    ken
View Complete Thread