Alignment Problem in RadEditor

6 posts, 1 answers
  1. Hemamalini
    Hemamalini avatar
    35 posts
    Member since:
    Jul 2010

    Posted 30 Nov 2010 Link to this post

    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.
  2. Ziga HABJAN
    Ziga HABJAN avatar
    22 posts
    Member since:
    Jan 2004

    Posted 30 Nov 2010 Link to this post

    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
  3. Hemamalini
    Hemamalini avatar
    35 posts
    Member since:
    Jul 2010

    Posted 30 Nov 2010 Link to this post

    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.
  4. Answer
    Rumen
    Admin
    Rumen avatar
    14010 posts

    Posted 01 Dec 2010 Link to this post

    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.
  5. Kyaw
    Kyaw avatar
    10 posts
    Member since:
    Apr 2012

    Posted 03 Jan 2013 Link to this post

    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.
  6. Rumen
    Admin
    Rumen avatar
    14010 posts

    Posted 03 Jan 2013 Link to this post

    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.
Back to Top