jhtmlarea.js Unable to get it to add <p> tags each time I click "enter"

jhtmlarea.js Unable to get it to add <p> tags each time I click "enter"

Hello,

No idea if anyone is knowlegeable with jhtmlarea.js but I am struggling getting my text to appear properly in the text area.

At the moment when I enter some text, I get this:

text here
[enter ]

<div>text here</div>

It looks like when I load it there is no div tags on my first line of text until I click on "enter".

Any idea how to add automatically <p> tags to any part of the text each time the button "enter" is clicked please?

i have attached the js file as it is too big to be posted here.

Thank you in advance