Setting type enter new line contenteditable

Setting type enter new line contenteditable

by Adi Jaya

HTML

<pre contenteditable='true'>fdfdfg</pre>

CSS

div{color:red}

JavaScript

document.execCommand('defaultParagraphSeparator', false, '\n');