fixing the insertion of dragged text as new html document