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

[Solved] Blank line disappearance

3 Answers 138 Views
Editor
This is a migrated thread and some comments may be shown as answers.
thepilsbury
Top achievements
Rank 1
thepilsbury asked on 30 Sep 2009, 03:02 PM

My cient has reported an issue when tryng to enter a blank line in the editor:

To reproduce the blank line issue

1) Create a bullet point with some text, when you get to the end of the text type 'shift + enter' to put in a blank line. Then hit 'enter' and you should get the next bullet point with an empty line between the two bullets.

2) click on the 'html' tab to view the html.

3) click on the 'edit' tab to view the text, you should notice that the empty line has been taken out.

Why is the blank line being removed?

Regards,
Darren

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Oct 2009, 01:48 PM
Hi Darren,

The observed behavior is due to the RadEditor content optimization filters. Please, put the following javascript code after the RadEditor declaration:

<telerik:radeditor runat="server" ID="RadEditor1"></telerik:radeditor>
<script type="text/javascript">
Telerik.Web.UI.Editor.RemoveExtraBrakes.prototype.getHtmlContent = function(content)
{
    return content;
}
Telerik.Web.UI.Editor.StripJunkFilter.prototype.getHtmlContent = function(content)
{
    return content;
}
</script>

and see whether the problem still persists.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
thepilsbury
Top achievements
Rank 1
answered on 02 Oct 2009, 02:06 PM
Thanks for your reply.

Well... it works when switching between design and html view but on the preview window the blank line is no longer there.

Regards,
Darren
0
Rumen
Telerik team
answered on 07 Oct 2009, 01:03 PM
Hi Darren,

I examined the problem and fount that it is due to a browser behavior.  It appeared that the non-editable IFRAME elements do not render the <br> tags inside the list items. For your convenience I attached my test html page that demonstrates this behavior.

Unfortunately there is nothing we can do to provide a solution for this browser problem.


Greetings,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
thepilsbury
Top achievements
Rank 1
Answers by
Rumen
Telerik team
thepilsbury
Top achievements
Rank 1
Share this question
or