Personalizing color display

Last post 02-21-2011, 12:47 AM by Kenneth. 4 replies.
Sort Posts: Previous Next
  •  07-07-2009, 11:43 AM 53797

    Personalizing color display

    Hi,
     
    I am trying to limit the number of colors that appear in the font color option. Specifically, how would I make is so that only three colors are displayed in the drop down font box? Can the fonts be displayed independently, too? Meaning, could a user see an option for red font, blue font, and green font on the toolbar?
     
    Thanks so much,
    Danielle
  •  07-07-2009, 1:21 PM 53805 in reply to 53797

    Re: Personalizing color display

    Danielle,
     
    The Colors Panel of Cute Editor by default displays a predefined set of colors. You can easily modify this default set by inserting a piece of Javascript code into the page.

    Customizing the color

    You can easily modify this default set by creating your own color array.


    <script>
    CuteEditorColorArray = new Array("#FF0000","#FF9900","#99CC00","#339966","#33CCCC","#3366FF","#800080","#999999",
    "#FF00FF","#FFCC00","#FFFF00","#00FF00","#00FFFF","#00CCFF","#993366","#C0C0C0");
    </script>

    You can also disable the "more colors" option.


    <script> CuteEditorShowMoreColors=false</script>

    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

  •  02-14-2011, 8:37 AM 66209 in reply to 53805

    Re: Personalizing color display

    I realize this is an old thread, but it is exactly what I am looking for.
     
    However, how would I accomplish this in version 6.6? The logical  DropForeColor and DropBackColor settings in Common.config appear to be ignored?
  •  02-16-2011, 3:39 PM 66262 in reply to 66209

    Re: Personalizing color display

    Anybody have any idea?
     
    I could really use this feature. 
  •  02-21-2011, 12:47 AM 66321 in reply to 66262

    Re: Personalizing color display

    Hi Cassiopeia,
     
    DropForeColor and DropBackColor just the example code, it not use in editor by default.
     
     If you want to test it, please follow the steps below
     
    1. open file "\cuteeditor_files\Configuration\AutoConfigure\Default.config".
     
    2. Find section below
     
     <item type="dropdown" name="FontSize" width="60" text="[[FontSize]]" command="FontSize" />
     
    3. Add the section below under the section above
     
      <item type="dropdown" name="DropForeColor"  width="60" />
     
    4. Now, you should see the section in the toolbar
     
    Regards,
     
    Ken
View as RSS news feed in XML