Add a preview for the selected entity in WYSIWYG

d.o issue: https://drupal.org/node/2280547
According to standards, function short description and further text must be on separate lines.