The <div> below is set to "contenteditable", you can type in some content and even cut/paste and format the results. Remember, you are not actually writing the actual HTML so some properties may not map correctly in the view (like dynamic fonts or local images) but you should get a good idea of what is possible.
You can create your own document here.