Problem i got is that i have to be able to support html documents from old tinymce as well as being suitable for use with collaborative editing with something like ys.js. I might just have to bite the bullet and write a html to some other representation parser.