开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜