Use contenteditable=true instead of JS

@ook @yaf if you have any idea on how to make this work with the quicktags, I'd love to hear from you.