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

Empty Editor paragraphs don't render in browser

2 Answers 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
JohnVS
Top achievements
Rank 1
JohnVS asked on 14 Feb 2014, 03:43 PM
With a default Editor instance, if you have a paragraph, then press the Enter key twice to create blank space between a later paragraph, the middle "spacer" paragraph does not render in the browser, since it is totally empty.

<p>Test 1</p>
<p></p>
<p>Test 2</p>

But other WYSIWYG HTML editors generate "blank" paragraphs like this:

<p>Test 1</p>
<p>&nbsp;</p>
<p>Test 2</p>

That way, the browser will still render a blank paragraph.  Why does the Kendo Editor not do this?  Thanks.

2 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 17 Feb 2014, 08:14 AM
Hello John,

The latest internal build resolves this issue.

We do not add spaces because they are a meaningful character. We add other content that is not visible to the user, depending on the browser.

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
JohnVS
Top achievements
Rank 1
answered on 17 Feb 2014, 03:38 PM
Excellent, that makes total sense. We will give that build a try, thank you.
Tags
Editor
Asked by
JohnVS
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
JohnVS
Top achievements
Rank 1
Share this question
or