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

RadEditor second EditorToolGroup not wrapping to new line

1 Answer 135 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 09 Sep 2011, 02:12 PM
Hi,
We have a situation where we have a RadEditor (on an object edit page) that has two EditorToolGroups.  When opening an existing object, the RadEditor is visible with the page opening and the second EditorToolGroup starts a second line in the header, as it should.  However, when creating a new object, the RadEditor is only needed sometimes so it is not visible when the page is initially rendered.  In this case, the second EditorToolGroup starts at the end of the first EditorToolGroup and seems to be constrained horizontally to the space between where it started and the end of the line, thus it wraps to several lines, all to the far right of the ToolBar.  This may be further complicated (or not) by the fact that the RadEditor is contained in a user control (.ascx) file.  I have attached the RadEditor definition below.

Thanks for your help,
Dan Norton

<telerik:RadEditor ID="BodyEditor" Runat="server" 
                    Width="600px" Height="255px"
                    EditModes="Design, Preview"
                    EnableResize="false"
                    StripFormattingOnPaste="All" 
                    SkinID="DefaultSetOfTools"
                    MaxTextLength="4000" 
                    OnClientCommandExecuting="OnClientCommandExecuting" 
                    >
    <Tools>
        <telerik:EditorToolGroup Tag="toolBar">
            <telerik:EditorDropDown Name="FormatBlock" Text="Normal" />
            <telerik:EditorDropDown Name="FontName" Text="Font" Width="125" />
            <telerik:EditorDropDown Name="RealFontSize" Text="Size" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorDropDown Name="ddnFieldSelect_WO" Text="Add Work Order Field" Width="125" />
            <telerik:EditorDropDown Name="ddnFieldSelect_EV" Text="Add Event Field" Width="125" />
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="Bold" Text="Bold" />
            <telerik:EditorTool Name="Italic" Text="Italic" />
            <telerik:EditorTool Name="Underline" Text="Underline" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="JustifyLeft" Text="Align Left" />
            <telerik:EditorTool Name="JustifyCenter" Text="Center" />
            <telerik:EditorTool Name="JustifyRight" Text="Align Right" />
            <telerik:EditorTool Name="JustifyFull" Text="Justify Full" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="InsertOrderedList" Text="Ordered List" />
            <telerik:EditorTool Name="InsertUnorderedList" Text="Unordered List" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="Outdent" Text="Outdent" />
            <telerik:EditorTool Name="Indent" Text="Indent" />
            <telerik:EditorTool Name="ForeColor" Text="Text Color" />
            <telerik:EditorTool Name="BackColor" Text="Background Color" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="InsertLink" Text="Insert Link" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="Cut" Text="Cut" />
            <telerik:EditorTool Name="Copy" Text="Copy" />
            <telerik:EditorTool Name="Paste" Text="Paste" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="Undo" Text="Undo" />
            <telerik:EditorTool Name="Redo" Text="Redo" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="AjaxSpellCheck" Text="Spell Checker" />
        </telerik:EditorToolGroup>
    </Tools>
    <Modules>
        <telerik:EditorModule Name="RadEditorStatistics" Visible="true" />
    </Modules>
    <RealFontSizes>
        <telerik:EditorRealFontSize Value="8pt" />
        <telerik:EditorRealFontSize Value="9pt" />
        <telerik:EditorRealFontSize Value="10pt" />
        <telerik:EditorRealFontSize Value="11pt" />
        <telerik:EditorRealFontSize Value="12pt" />
        <telerik:EditorRealFontSize Value="14pt" />
        <telerik:EditorRealFontSize Value="16pt" />
        <telerik:EditorRealFontSize Value="18pt" />
        <telerik:EditorRealFontSize Value="20pt" />
        <telerik:EditorRealFontSize Value="22pt" />
        <telerik:EditorRealFontSize Value="24pt" />
        <telerik:EditorRealFontSize Value="26pt" />
        <telerik:EditorRealFontSize Value="28pt" />
        <telerik:EditorRealFontSize Value="36pt" />
        <telerik:EditorRealFontSize Value="48pt" />
        <telerik:EditorRealFontSize Value="72pt" />
    </RealFontSizes>
</telerik:RadEditor>

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Sep 2011, 12:23 PM
Hello Dan,

Could you please try the solution provided in the following sticky note: Incorrect rendering of RadEditor when shown with AJAX in initially hidden parent?

If this does not help you to solve the problem, please isolate it in a simple working project and send it for examination in a support ticket.

All the best,
Rumen
the Telerik team

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