Configuring the Toolbar

Last post 01-19-2004, 8:11 AM by areeve. 7 replies.
Sort Posts: Previous Next
  •  01-17-2004, 12:41 PM 223

    Configuring the Toolbar

    I'm trying to configure the toolbar like my old RichTextBox was so as to inconvenience clients that are used to the current layout, but am having several problems...

     

    1) I have a custom Save button being as there's not one that's a part of the RichTextBox. It would be nice to be able to assign a name to it and then use the TemplateItems property to configure the sequence of control. I know you've already address this and are aware of this 'issue'.

     

    2) But before adding my custom button I'm trying to get as much of the layout in sequence and it doesn't appear that the Paragraph drop down list is exposed such that I can add it. There's a StylesDropDownListr, but not a ParagraphsDropDownList.

     

    3) So I've set up my configuration as follows:

    ed.Template = "styleDropDown,paragraphDropDown,fontDropDown,sizeDropDown,FontColor,HighLight,Break," +

    "Bold,Italic,Underline,Subscript,Superscript,Strikethrough,Separator,JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone,Separator,InsertOrderedList,InsertUnorderedList,Outdent,Indent,Separator,Cut,Copy,Paste,PasteText,PasteWord,Delete,Separator,Undo,Redo,Separator,Link,UnLink,Hr,Print,Help,Break," +

    "New,Separator,InsertTable,ToggleBorder,AddRow,DeleteRow,AddColumn,DeleteColumn,AddCell,DeleteCell,MergeCell,SplitCell,Separator,Char,LinksDropDown,CodeSnippetDropDown,Emotion,InsertTime,InsertDate";

     

    but the LinksDropDown and CodeSnippetDropDown appear on a separate fourth line that isn't even in sequence with what I've got here... i.e. the table stuff is followed by the Emotion, Time, and Date buttons and then a new line appears with the Links and Code Snippets. I feel like I don't control my toolbar!?

     

    4) Finally, I don't really understand the point of G_Start and G_End. I understand that they're group start and end fields, but why should I care?

     

    - Thanks, Alan

  •  01-17-2004, 1:06 PM 224 in reply to 223

    Re: Configuring the Toolbar

    In fact, I don't seem to see the FontDropDownList as accessible either...

     

    It's referenced in the PDF document unlike the StyleDropDownList which is erroneously listed as the name of the ParagraphDropDownList control in the PDF doc.

     

    I even downloaded the latest release which apparently did change on Jan 14.

     

    Is it possible to get a version that publicly exposes these or am I just missing something simple. I'm in a bit of a hurry to get this new editor working.

     

    - Thanks, Alan

  •  01-17-2004, 3:19 PM 225 in reply to 223

    Re: Configuring the Toolbar

    Alan,

     

    I tested your template and got the following result :

     

    Alan Template

     

    If you get the LinksDropDown and CodeSnippetDropDown appear on a separate fourth line,  I think propably you set the width of the editor control is too small.

     

    G_Start and G_End render as <NOBR> and </NOBR>.

     

    The NOBR element stands for NO BReak. This means all the buttons between the start and end of the NOBR elements cannot have line breaks inserted between them.

     

     

    Adam

     

     

     


    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

  •  01-17-2004, 3:30 PM 226 in reply to 225

    Re: Configuring the Toolbar

    Try the following code:

     

       Editor1.FontSizesList = new string[] {"1","2","3"};
       Editor1.FontFacesList = new string[] {"Arial","verdana"};

     

    Hope it helps.


    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

  •  01-17-2004, 7:19 PM 227 in reply to 225

    Re: Configuring the Toolbar

    You're probably correct as I do set the Width of the control. I do have to question why setting the width alters the order on the controls. Is it possible to set the width of the editor window without affecting the toolbar?

     

    Likewise, several of my questions remain unanswered. Given that I can't use a template how do I add the ParagraphDropDownList and the FontDropDownList to an empty toolbar (I hope it's possible to start with an empty one?) so that I can also add my custom buttons where I need them instead of having them blindly inserted at the beginning of the toolbar. I don't see either the Paragraph or Font drop down lists exposed as properties.

     

    Thanks for the detail on G_Start/G_End!

     

    - Alan

  •  01-17-2004, 8:49 PM 228 in reply to 227

    Re: Configuring the Toolbar

    Ok, I removed my Width adjustment line and that did NOT solve the problem. Pictured below is what I get with the aforementioned Template configuration. It's almost as if we're running different versions of the control because as you can see the Links and Code Snippet lists arbitrarily appear on a line by themselves. I even added G_Start/G_End to each line of the toolbar and got the same results...

     

     

  •  01-19-2004, 6:47 AM 231 in reply to 228

    Re: Configuring the Toolbar

    arreeve,

     

    That seems like a bug when you set EnableFancyDropDownMenu="true"


    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

  •  01-19-2004, 8:11 AM 236 in reply to 231

    Re: Configuring the Toolbar

    Indeed. That was the issue... any ideas on the timeframe for a fix?
View as RSS news feed in XML