Added solution for the edit mode view using a hidden widget class instead of rendering out HTML as it does in preview mode.