Cute Editor for ASP

How to create a custom toolbar configuration file?

How to create a custom toolbar configuration file?

The following table shows the steps to create your own toolbar configuration file.


Step 1.  Create a new configuration file and name it "mytools.config".

 

Open the configuration file and copy/paste the code below, save it to
CuteEditor_Files/Configuration folder.

 

  1. <?xml version="1.0" encoding="utf-8" ?>  
  2. <configuration>  
  3. <contextmenu>  
  4.     <item name="Editing" value="False" />  
  5.     <item name="Format" value="False" />  
  6.     <item name="Insert" value="False" />  
  7.     <item name="InsertAdvanced" v alue="False" />  
  8.     <item name="InsertFiles" value="False" />  
  9.     <item name="InsertForms" value="False" />  
  10.     <item name="Relative" value="False" />  
  11.     <item name="Tags" value="False" />  
  12.     <item name="Verbs" value="False" />  
  13. </contextmenu>    
  14.   
  15. <toolbars>  
  16.     <item type="g_start" />  
  17.     <item type="image" name="Save" postback="True" />  
  18.     <item type="image" name="Bold" />  
  19.     <item type="image" name="Italic" />  
  20.     <item type="image" name="Underline" imagename="under" />  
  21.     <item type="separator" />  
  22.     <item type="image" name="JustifyLeft" imagename="left" />  
  23.     <item type="image" name="JustifyCenter" imagename="center" />  
  24.     <item type="image" name="JustifyRight" imagename="right" />  
  25.     <item type="holder" name="insertcustombutonhere" />  
  26.     <item type="g_end" />  
  27. </toolbars>  
  28. </configuration >  

 

Step 2.  In Editor settting, specify the path of your custom configuration file.

In the CE setting, you need to set the use the ConfigurationPath to specify the path of your custom configuration file.


Example:

 

  1. <%   
  2.            Dim editor   
  3.            Set editor = New CuteEditor   
  4.            editor.ID = "Editor1"  
  5.            'specify the path of your custom configuration file    
  6.            editor.ConfigurationPath = "/asp/CuteEditor_Files/Configuration/myTools.config"  
  7.            editor.Text = "Hello World"  
  8.            editor.Draw()   
  9. %>