I used the following module in my angular project.
It works fine on google chrome.
Whereas on Firefox, the textarea inside a draggble container cannot get focus from mouse click. And it always scroll to top when typing.
White-space: pre is working better than white-space: wrap in Firefox