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

[Solved] NewLineBr property in IE7

1 Answer 68 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Jul 2009, 05:55 PM

Maybe you can help...

I am using the RadEditor and want to be able to center just one line of text and not the entire content of the editor.  Thus, I followed the steps outlined in other forum threads and tutorials. 

When I actually have <p> tags surrounding each line of text, setting the margins of the tags as a css class works great.  The problem is that the property NewLineBr="false" doesn't seem to be working in my editor (or I am misunderstanding its functionality?).

I'm using IE7, and currently am under the understanding that when NewLineBr is set to false then when I hit ENTER in my RadEditor, I should get <p> tags and not a <br> tag.  However, I'm still just getting <br> tags each time.  Here's my editor code:

<telerik:RadEditor ID="RadEditor" runat="server" Height="500px" Width="750px" ContentFilters="None" Skin="Vista" NewLineBr="false">  
     <Content> 
     </Content> 
     <Tools> 
         <telerik:EditorToolGroup> 
              <telerik:EditorTool Name="Bold" /> 
              <telerik:EditorTool Name="Underline" /> 
              <telerik:EditorTool Name="Italic" /> 
              <telerik:EditorTool Name="StrikeThrough" /> 
              <telerik:EditorTool Name="Indent" /> 
              <telerik:EditorTool Name="Outdent" /> 
              <telerik:EditorTool Name="JustifyCenter" /> 
              <telerik:EditorTool Name="JustifyLeft" /> 
              <telerik:EditorTool Name="JustifyFull" /> 
              <telerik:EditorTool Name="JustifyRight" /> 
              <telerik:EditorTool Name="JustifyNone" /> 
              <telerik:EditorTool Name="FontName" /> 
              <telerik:EditorTool Name="RealFontSize" /> 
              <telerik:EditorTool Name="ForeColor" /> 
          </telerik:EditorToolGroup> 
      </Tools> 
      <CssFiles> 
          <telerik:EditorCssFile Value="~/EditorContentArea.css" /> 
      </CssFiles> 
 </telerik:RadEditor> 

Thanks for your help!

Michael

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 13 Jul 2009, 12:27 PM
Hi Michael,

You should not experience this problem, because you have set correctly the NewLineBr property to false in the editor's declaration. Since I am not sure what is causing the problem on your side, I attached a sample working project with RadEditor in it with NewLineBr=false and a video demonstrating how the editor works when the Enter key is pressed. Please, test it and if it inserts a <p> tag on enter key down.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Michael
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or