saving a fixed color pallete????

Last post 04-14-2009, 8:35 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  04-13-2009, 10:21 AM 51027

    saving a fixed color pallete????

    Hi,
     
    I have certain hex color codes, that must be always available for the user to use when changing text colors. Is this possible? 
     
    Is there a way to add those hex color codes to the cute-editor in the custom colors panel by default, maybe under "Recently used, however to be always there and not only for the lenght of the session"?
     
    thanks
  •  04-13-2009, 12:44 PM 51028 in reply to 51027

    Re: saving a fixed color pallete????

    Mook,
     
    I suggest you just modify the exisitng color panel.
     
     
    Please check the following article:
     
    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

  •  04-14-2009, 7:29 AM 51064 in reply to 51028

    Re: saving a fixed color pallete????


    Adam where should I place this script tag??
    In the .aspx page tha contains my cute-editor control?
     
    Thanks
  •  04-14-2009, 8:35 AM 51074 in reply to 51064

    Re: saving a fixed color pallete????

    Hi mook,
     
    You can put this code anywhere on the page, like:
     
    ------------------------------------------------------>
     

    <%@ Page Language="C#" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
                  <CE:Editor ID="editor1" runat="server" >
            </CE:Editor>
        </form>
    </body>
    </html>
    --------------------------------------------------------->
     
    Regards,
     
    Ken
View as RSS news feed in XML