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

[Solved] Toolbar over several rows

1 Answer 133 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Trygve
Top achievements
Rank 2
Trygve asked on 20 Apr 2009, 08:21 AM
I have a problem where the size of the toolbar stretches the radeditor size so that it messes with the layout of my page. How could I get the radeditor to break into two or more rows so that the size of the radeditor is kept to the size of the table cell.

                                            <tr> 
                                                <td style="border-bottom: black 1px solid; width: 445px;"
                                                    <telerik:RadEditor ID="RadEditor1" runat="server" Width="100%" Height="150px" Style="height: 100%" 
                                                        ToolsFile="RadControls/Editor/BasicTools.xml" Skin="Vista" EditModes="Design" 
                                                        EnableResize="False" EnableTheming="True" StripFormattingOptions="AllExceptNewLines" 
                                                        ToolbarMode="Default" ToolsWidth="50px" OnClientPasteHtml="OnClientPasteHtml"
                                                    </telerik:RadEditor> 
                                                </td> 
                                            </tr> 

ToolsWidth does not seem to do anything at all, and the radeditor streches beyond 445px.

XML Toolsfile:
<root> 
  <tools name="MainToolbar" dockable="false" enabled="true"
      <tool name="FindAndReplace" /> 
      <tool separator="true"/> 
      <tool name="Undo" /> 
      <tool name="Redo" /> 
      <tool separator="true"/> 
      <tool name="Cut" /> 
      <tool name="Copy" /> 
      <tool name="Paste" shortcut="CTRL+!"/> 
        <tool separator="true"/> 
        <tool name="JustifyLeft" /> 
        <tool name="JustifyCenter" /> 
        <tool name="JustifyRight" /> 
        <tool name="JustifyFull" /> 
        <tool name="JustifyNone" /> 
        <tool separator="true"/> 
        <tool name="Indent" /> 
        <tool name="Outdent" /> 
        <tool separator="true"/> 
        <tool name="InsertOrderedList" /> 
        <tool name="InsertUnorderedList" /> 
        <tool separator="true"/>         
        <tool name="LinkManager" shortcut="CTRL+K"/> 
        <tool name="Unlink" shortcut="CTRL+SHIFT+K"/>    
        <tool separator="true"/> 
        <tool name="Bold" /> 
        <tool name="Italic" /> 
        <tool name="Underline" /> 
        <tool separator="true"/> 
        <tool name="InsertTable" /> 
        <tool name="ForeColor" /> 
        <tool separator="true"/> 
        <tool name="FontName"/> 
        <tool name="RealFontSize"/> 
  </tools> 
  <module name="RadEditorNodeInspector" dockingZone="Module" enabled="true" visible="true" dockable="true" /> 
</root> 



1 Answer, 1 is accepted

Sort by
0
Trygve
Top achievements
Rank 2
answered on 20 Apr 2009, 08:22 AM
Just as I posted this I found a solution which seems to work:

<root> 
  <tools name="MainToolbar" dockable="false" enabled="true"
      <tool name="FindAndReplace" /> 
      <tool separator="true"/> 
      <tool name="Undo" /> 
      <tool name="Redo" /> 
      <tool separator="true"/> 
      <tool name="Cut" /> 
      <tool name="Copy" /> 
      <tool name="Paste" shortcut="CTRL+!"/> 
        <tool separator="true"/> 
        <tool name="JustifyLeft" /> 
        <tool name="JustifyCenter" /> 
        <tool name="JustifyRight" /> 
        <tool name="JustifyFull" /> 
        <tool name="JustifyNone" /> 
        <tool separator="true"/> 
        <tool name="Indent" /> 
        <tool name="Outdent" /> 
        <tool separator="true"/> 
  </tools> 
  <tools name="MainToolbar1" dockable="false" enabled="true"
        <tool name="InsertOrderedList" /> 
        <tool name="InsertUnorderedList" /> 
        <tool separator="true"/>         
        <tool name="LinkManager" shortcut="CTRL+K"/> 
        <tool name="Unlink" shortcut="CTRL+SHIFT+K"/>    
        <tool separator="true"/> 
        <tool name="Bold" /> 
        <tool name="Italic" /> 
        <tool name="Underline" /> 
        <tool separator="true"/> 
        <tool name="InsertTable" /> 
        <tool name="ForeColor" /> 
        <tool separator="true"/> 
        <tool name="FontName"/> 
        <tool name="RealFontSize"/> 
  </tools> 
  <module name="RadEditorNodeInspector" dockingZone="Module" enabled="true" visible="true" dockable="true" /> 
</root> 

Tags
Editor
Asked by
Trygve
Top achievements
Rank 2
Answers by
Trygve
Top achievements
Rank 2
Share this question
or