Emit events when the content changes
Added API method to set the current HTML content