use val() to set content of editor instead of append()

Because the editor is a text area, using append caused and html in the
markdown to be stripped out, whereas val() will preserve it.