Coming from Contenteditable Height transition
I've quickly realized that a contenteditable div can change from:
<div contenteditable> </div>
To this:
<div contenteditable style="background-image: none; background-position: 0% 0%; background-repeat: repeat;"><b><i>
Testing <br> one two three
</i></b><div><b><i><br></i></b></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
Is there an easy way to prevent the user from entering anything other than plaintext and newlines? I will clean it serverside, and can also do some preliminary cleaning through JavaScript, but giving the user the idea that they can make text bold, etc. in the first place is not very good.
` into a `