I haven't found a decent browser-based content editor, so this is a prototype of a simple editor which outputs valid HTML5.
My requirement was to enable a user to edit formatted content on a mobile/touch device in their browser.
Since contentEditable is flakey on mobile, I decided to go with a style selector and a plain text box.