Fix a copy paste issue from the browser into text editor