This is a migrated thread and some comments may be shown as answers.

Problem with multiple toolbars

1 Answer 78 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 1
Fredrik asked on 27 Nov 2008, 02:41 PM
We are having trouble using multiple toolbars for RadEditor in our MOSS environment. The ListToolsFile.xml is as follows:

<root>
  <tools name="MainToolbar" enabled="true">
    <tool name="Undo" />
    <tool name="Redo" />
    <tool separator="true" />
    <tool name="Cut" />
    <tool name="Copy" />
    <tool name="Paste" shortcut="CTRL+!" /> 
  </tools>
  <tools name="Formatting" enabled="true">
    <tool name="Bold" />
    <tool name="Italic" />
    <tool name="Underline" />
    <tool separator="true" />
    <tool name="FontName" />
    <tool name="RealFontSize" />
  </tools>
<root>

The problem is that it is only the "Formatting" Tool bar that gets rendered.

\\ Regards

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 02 Dec 2008, 07:35 AM
Hello,

I tried your toolbar in the latest RadEditor for MOSS release (5.31) and both toolbars were rendered. The problem in your case is that your "Multiple lines of text" list field is of type ""Enhanced rich text (Rich text with pictures, tables, and hyperlinks)". You can see that in the default list tools file there are two toolbars as well - one is the basic toolbar, the other is the enhanced toolbar. The editor will automatically remove the enhanced toolbar (the one that is on top) when it detects that the field is not "Enhanced rich text". This is why you only see the second toolbar from your list file.

To fix this, you either need to change the type of your list field to be "Enhanced rich text" or you can simply add an empty toolbar at the beginning of the tools file, which will be removed when the editor is loaded in a simple "Rich text" list field:

<root>
    <tools name="enhanced">
    <tool separator="true" />
    </tools>
  <tools name="MainToolbar" enabled="true">
    <tool name="Undo" />
    <tool name="Redo" />
    <tool separator="true" />
    <tool name="Cut" />
    <tool name="Copy" />
    <tool name="Paste" shortcut="CTRL+!" />
  </tools>
  <tools name="Formatting" enabled="true">
    <tool name="Bold" />
    <tool name="Italic" />
    <tool name="Underline" />
    <tool separator="true" />
    <tool name="FontName" />
    <tool name="RealFontSize" />
  </tools>
</root>


Best wishes,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Fredrik
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or