Improved widget DEV sample: getHtmlWithSelection doesn't impact editor selection, uses cloned content and cloned selection instead.