I have a problem with contenteditable line breaks on SAFARI/CHROME. When I press \"return\" on a contentEditable , instead of creating a
contenteditable
, instead of creating a
You can use:
document.execCommand("defaultParagraphSeparator", false, "br");
The complete reference is here