Add a preview for the selected entity in WYSIWYG

d.o issue: https://drupal.org/node/2280547
Looks like this would fail if just data-entity-id was used? Is it possible to relax this restriction?