Javascript – How to put new lines in p tag in contentEditable div
I have a contentEditable div, whenever I insert a new line by pressing enter or shift+enter the new line is a textNode in the div but I want the new line to be in p element. I want a simple…