Add a preview for the selected entity in WYSIWYG

d.o issue: https://drupal.org/node/2280547
It would be great if we could display exactly the same html as it is being saved into DB (i.e. div with attributes).