fixes #6062 Problems importing content in the text area fields

Fixed the issue and pushed the code for review, please check it.