Full credit to this article: http://www.barneyparker.com/world-simplest-html5-wysisyg-inline-editor/