Textarea overflow-x when a user copy-pastes into it?

Posted by Logan on Stack Overflow See other posts from Stack Overflow or by Logan
Published on 2008-10-02T16:21:35Z Indexed on 2010/05/06 2:08 UTC
Read the original article Hit count: 276

Filed under:
|
|

Hi,

I have a textarea with overflow-x: auto; attributed to it. It works great when a user is typing text into the box by hand. When a user copy pastes a line from a file, however, that is bigger than my textarea, the overflow-x property does not work, instead the textarea wordwraps the long line.

Is there a way (maybe javascript) to make overflow-x work on copy-paste?

Thanks.

© Stack Overflow or respective owner

Related posts about html

Related posts about textarea