I have a problem with contenteditable line breaks on SAFARI/CHROME. When I press \"return\" on a contentEditable
You can simply use following command
document.execCommand('insertHTML',false,'
');
This command will prevent default behavior and add a tag you wish. That's all, 1 line of code
And even easier approach.
CSS ONLY.
To you contenteditable element apply display:inline-block rule
and this will add brs only