关于firefox的copy/paste的问题

firefox为了保护用户安全,在有的文本 编辑器(如Iframe)中禁止copy/paste操作,firefox会将你引导到
http://www.mozilla.org/editor/midasdemo/securityprefs.html

我在blogbus上就碰到了这个问题,写下我的解决方法:
我用的是linux操作系统,
1.先找到firefox的安装目录:/root/.mozilla/firefox/***.default/
2.在该目录下查找user.js,如果没有,则自己新建一个user.js
3.在user.js中添加:
user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://www.blogbus.com");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

ok,重启firefox就可以随意复制粘贴了

posted on 2006-09-19 10:35 扬州梦 阅读(156) 评论(0)  编辑  收藏 所属分类: linux

只有注册用户登录后才能发表评论。


网站导航:
 

统计