If you change the contenteditable element to be a instead of a the new line will be made with a
. I haven't tested this with other elements, but it would be interesting to see how different elements would behave.
A element can be styled with display: block to make it look like a