I have a div with the attribute contentEditable set.
The trouble I am having is that the first line I type does not get wrapped in tags, but the subsequent lines do.
Input
abcd
efgh
ijkl
Result
<div contentEditable="true">
"abcd"
<div>efgh</div>
<div>ijkl</div>
</div>