How to set a permanent color in "Font Color"?

Last post 01-18-2010, 3:31 PM by Eric. 1 replies.
Sort Posts: Previous Next
  •  01-18-2010, 10:41 AM 58238

    How to set a permanent color in "Font Color"?

    Hello,
     
    how can I add permanently a color code like #ABABAB to the "Font Color" Module?  I mean in the button row where there are lots of #FFFFFF colors:
     



    Thank you!
  •  01-18-2010, 3:31 PM 58249 in reply to 58238

    Re: How to set a permanent color in "Font Color"?

    Dear dev65,
     
    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>
     
    Regards,
    Eric
View as RSS news feed in XML