Why can't i copy and paste in Safari's textarea?
I have a general textarea in a code like so:
<div><textarea></textarea><开发者_开发知识库;/div>
However in Safari and Chrome I can not copy and paste. When I select text I can copy, but when I paste it just pastes an empty string. Anyone familiar with this problem and knows how to solve this? Its driving me mad.
PS I am running jQuery.
Ok the problem occurs in jqtouch.css and it's the line
body > * {
display:none;
}
body > * {
left:100%;
}
body > .current {
left:0px;
}
Does fixes the issue apparently but you dont want all views to be drawn.
If you hide the views in javascript like so $('body > *').css('display', 'none');. There is no problem again.
It's been driving me crazy as well (on Chrome Canary). It looks like this is a verified priority 1 regression in webkit (although it's been closed for some reason). See http://code.google.com/p/chromium/issues/detail?id=60057 for more details.
精彩评论