Carriage returns removed from textarea when copied to clipboard
I'm using the following script to copy the contents of a texarea to the clipboard. Seems to only work in IE but that's not an issue as this is a tool for work where everyone uses IE anyway. I'm working with IE9.
Text with carriage returns that should be maintained but aren't!
...This never used to be a problem with older versions of IE.
The textareas I'm using aren't part of a form to be submitted to a server or email, just static text boxes for people to copy text from.
I tried using the attribute wrap="hard" in the textarea tag but that doesn't fix it (seems to control how the text is sent to a server - but my text isn't going to a server).
Tried re-entering the text manually, as it was originally pasted from a Word document - no joy.
Tried to call it in the body tag - onload="replacecarriagereturn();" - no joy.
Tried removing this
I'll keep digging but does anyone know of a way around this?
|All times are GMT +1. The time now is 02:36 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.