I have a comment plugin for WordPress
which has a small problem.
It works like this:
It is a <div>
that works as if it were a <textarea>
, only because it works like this, when the user wants to type a comment and it gives "enter"
to break the line and then send the comment, comment arrives without breaking the line, it arrives as if the person had not given a break.
How the HTML code is:
<div class="commentator-textarea" placeholder="Junte-se" contenteditable=""></div>
Images:
Comment example: Howitgetsaftercommented:
Is there any solution for this?
If I comment and break the line using Vou quebrar a<br>linha
it works.
Once commented, it is:
I will break the
line