Enter in the Contenteditable "div" tag makes it creates a new "div" tag. How can I do so that it instead creates a "p", if you hit enter after an "img" tag?
<div id="append_id" contenteditable="true">
This text can be edited by the user.
<img style="height:100px;" src="myImage.jpg" />
</div>