When you make an element (in my div case) contenteditable = "true", when inserting a line, a <div>
inserted. But if the cursor stood for example in <p>
then <p></p>
inserted, which triples me more. Following the example of CREDITOR, when clicked, if the field is empty, <p><br></p>
inserted. But the cursor still stands at nothing and inserts a div when translating a line. And here is how to make the cursor now fall into this <p>
so that the divas are not stamped?
Although the question is not correct. How to make a line break inserted <p>
instead of the standard <div>
?