关于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就可以随意复制粘贴了
本文介绍了解决Firefox浏览器在特定网站(如blogbus)上无法进行复制粘贴操作的方法。通过修改Linux系统中Firefox的配置文件user.js,设置允许在指定站点进行复制粘贴,重启Firefox后即可正常使用。
4444

被折叠的 条评论
为什么被折叠?



