Why EditLive! Inserts Empty P Tags With Non-Breaking Spaces
One of the very common questions customers ask is "Why does EditLive insert an empty paragraph tag with non-breaking space ( or  ) in code view?". This article addresses the reasons behind this behavior of EditLive!.
When
- When you first load EditLive! without any content in its body
- Pressing "Enter" key in the design view of EditLive!
Why
- EditLive! assumes user will start typing after the initial load and prepares the editor by placing an empty paragraph at the start of the empty document. This provides a place in the document to actually position the caret and allow the user to start entering text. If the user chooses to insert a heading tag instead of a normal paragraph, EditLive! simply replaces the paragraph with the relevant heading.
- Most browsers ignore empty paragraph tags, so to ensure the page displays as the user intended, a non-breaking space is inserted into empty paragraphs.

