The demo is using very old version of jWYSIWYG plugin (as suggested here), therefore you should use the upgraded code.
This was happening because when the editor is initialized and no content is load from textarea, it put an <br>
.
Here is the commit fix that you're probably looking for:
Explanation of brIE-option in README and some code refactoring for the same functionality authored by stianlik.
The ENTER key will no longer reset the style to "Paragraph", but continue writing "Header 1" until users explicitly choose "Paragraph" in the toolbar.
You may use brIE
option to control this behaviour. Check the README for more details.
Related:
- Issue 15: adds unwanted
<br>
tags at Google Code - #143: editor specific browser-compability issue at GitHub