Editor - problems with "Enter "

In my case I use code:

var editor;
dhtmlx.image_path = "js/dhtmlx/editor/imgs/";
	
editor = new dhtmlXEditor("editorObj","dhx_blue");
editor.setContent("<?=$_POST['description'];?>");

But, if in text been command “Enter” - it’s not work.
How prepear text for command “setContent()”?

If I write data:

text
df
gdf

in editor,
than component getContent()

  • is:
<P>text</P>
<P>df</P>
<P>gdf</P>

So, this html-string is problem for component with method setContent().

Could you provide us completed demo?
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Editor doesn’t control “enter” key pressing. The tag depends on browser, for example, Chrome generates

, IE Therefore, the issue can not be solved in currect Editor implementation.