fixing issue with html5 editor