This is a migrated thread and some comments may be shown as answers.
Alignment Problem in RadEditor
5 Answers 84 Views
This is a migrated thread and some comments may be shown as answers.
Hemamalini
Top achievements
Rank 1
Hemamalini asked on 30 Nov 2010, 09:07 AM
Hi,

   I have used RadEditor and its associated tools group.. i had faced a problem such that, i entered the text one below another using enter key and selected one text to make it right aligned.. The Problem is all the texts displayed one below other is also getting right aligned, not the particular text alone which i have selected.. It is not only for right alignment, also includes left,justify...The following is the code i used,
<telerik:RadEditor TabIndex="4" ID="radEditorDescription" OnClientLoad="OnClientLoad" EnableResize="false"
                                       runat="server" Width="640px" CssClass="marginBottom20 maarginleft10">
                                       <Tools>
                                           <telerik:EditorToolGroup Tag="MainToolbar">
                                               <telerik:EditorTool Name="AjaxSpellCheck"  />
                                               <telerik:EditorTool Name="Print" />
                                               <telerik:EditorTool Name="StrikeThrough" />
                                               <telerik:EditorTool Name="InsertUnorderedList" />
                                               <telerik:EditorTool Name="InsertOrderedList" />
                                               <telerik:EditorTool Name="Subscript" />
                                               <telerik:EditorTool Name="Superscript" />
                                               <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                                               <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                                               <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                                               <telerik:EditorTool Name="Indent" />
                                               <telerik:EditorTool Name="Outdent" />
                                               <telerik:EditorTool Name="TableWizard" />
                                               <telerik:EditorTool Name="InsertSymbol" />
                                               <telerik:EditorTool Name="JustifyLeft" />
                                               <telerik:EditorTool Name="JustifyRight" />
                                               <telerik:EditorTool Name="JustifyFull"/>
                                           </telerik:EditorToolGroup>
                                           <telerik:EditorToolGroup>
                                               <telerik:EditorTool Name="Bold" />
                                               <telerik:EditorTool Name="Italic" />
                                               <telerik:EditorTool Name="Underline" />
                                               <telerik:EditorSeparator />
                                               <telerik:EditorTool Name="ForeColor" />
                                               <telerik:EditorTool Name="BackColor" />
                                               <telerik:EditorSeparator />
                                               <telerik:EditorTool Name="FontName" />
                                               <telerik:EditorTool Name="RealFontSize" />                                                                                              
                                           </telerik:EditorToolGroup>                                                                                      
                                       </Tools>                                        
                                       <CssFiles>
                                           <telerik:EditorCssFile Value="~/App_Themes/Web20/Editor.css" />
                                       </CssFiles>
                                   </telerik:RadEditor>

Please guide me to proceed further..

Thanks,
Hema.

5 Answers, 1 is accepted

Sort by
0
Ziga HABJAN
Top achievements
Rank 1
answered on 30 Nov 2010, 09:44 AM
Aligment, justification, etc work on paragraphs. When pressing enter key, you probably make a new line:
<br />

Check out property "NewLineBr" of RadEditor, which can make it use paragraph instead of carrige return when pressing enter key.

re, Žiga
0
Hemamalini
Top achievements
Rank 1
answered on 01 Dec 2010, 05:44 AM
HI,

  I have used "NewLineBr" Property of RadEditor.. When i click dat icon in RadEditor it come as "The Command "NewLineBr" is not implemented yet".. Should i do anything in code behind... Please help me out..

<

 

telerik:EditorTool Name="NewLineBr" />

 


Thanks,
Hema.
0
Accepted
Rumen
Telerik team
answered on 01 Dec 2010, 04:07 PM
Hi Hemamalini,

The NewLineBr is a property but not a tool. It should be set in the RadEditor declaration as an inline attribute, e.g.

<telerik:RadEditor TabIndex="4" ID="radEditorDescription" NewLineBr="false" runat="server">
  ...
</telerik:RadEditor >

Sincerely yours,
Rumen
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Kyaw
Top achievements
Rank 1
answered on 03 Jan 2013, 10:46 AM
Hi Rumen,

I set NewLineBr="false", initial state is working fine. e.g., after you change alignment to "center" and click html view and go back to Design view, you can't change the alignment.

Any advice?????????????


Thanks.
0
Rumen
Telerik team
answered on 03 Jan 2013, 04:37 PM
Hi,

Are you able to reproduce the reported problem in the Default example of RadEditor by setting the New Lines as: radio button to Paragrahs, which is equal to NewLineBr="false"? If yes, please provide step-by-step instructions how to replicate it along with sample content and specifying the browser version.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Asked by
Hemamalini
Top achievements
Rank 1
Answers by
Ziga HABJAN
Top achievements
Rank 1
Hemamalini
Top achievements
Rank 1
Rumen
Telerik team
Kyaw
Top achievements
Rank 1
Share this question
or