Is it possible to have a file with Code Snippet for each user

Last post 03-06-2006, 9:46 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  03-06-2006, 9:16 AM 16739

    Is it possible to have a file with Code Snippet for each user

    Is it possible to have a file with Code Snippet for each user like it is with CSS:

    tekst.EditorWysiwygModeCss= "user/16/style.css";
  •  03-06-2006, 9:46 AM 16740 in reply to 16739

    Re: Is it possible to have a file with Code Snippet for each user

    You need to Programmatically populate the Code Snippet dropdown.
     
    if (!IsPostBack) {
       CuteEditor.ToolControl toolctrl=Editor1.ToolControls["Codes"];
       if(toolctrl!=null) {
          CuteEditor.RichDropDownList dropdown=(CuteEditor.RichDropDownList)toolctrl.Control;
          //the first item is the caption
          CuteEditor.RichListItem richitem=dropdown.Items[0];
          //clear the items from configuration files
          dropdown.Items.Clear();
          //add the caption
           dropdown.Items.Add(richitem);
          //add text and value
          dropdown.Items.Add("Email signature","<h3>this is my email      signature</h3>");
          //add html and text and value
          dropdown.Items.Add("<img border=0 align='absMiddle' src='/data/contact.gif'/> Contact us","Contact us","support@cutesoft.net");

       }
    }
     
     

    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

View as RSS news feed in XML