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

Additional <br> After Every <p>

0 Answers 68 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 08 Jun 2017, 05:22 AM

The RadEditor appears to be adding a <br> after every <p> when you press [Enter] in design mode. When saved and displayed as Html, this looks like two blank lines are between each line, instead of one.

The attached screenshot shows the editor in the bottom half, where the spacing looks correct, and the top half shows the text bound to a grid, where the spacing is doubled. 

If I inspect the markup I can see:

<p>line 1</p><br><br><p>line 2</p><br><br><p>line 3</p></br>

The config I'm initially using for the RadEditor is:

 <telerik:RadEditor RenderMode="Lightweight" ID="tbSummary" <br>                               runat="server" <br>                               StripFormattingOnPaste="NoneSupressCleanMessage" <br>                               NewLineMode="P" <br>                               EditModes="Design" <br>                               EmptyMessage="" <br>                               Width="639px" <br>                               BackColor="White" <br>                               OnClientLoad="OnClientLoad" >

 

I would have expected just the <p> tags, not the additional <br> tags. Any suggestions on how this can be resolved?

K

 

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Jason
Top achievements
Rank 1
Share this question
or