如何用Firefox 的Cut/Copy/Paste功能?

来源: 2012-03-15 09:07:58 [博客] [旧帖] [给我悄悄话] 本文已被阅读:

 

近一月来用Firefox 的贴文字不行, 总出现一个warning:

Unprivileged scripts cannot access Cut/Copy/Paste programatically for security reasons.  Click OK to see a technical note at mozilla.org which shows you how to allow a script to access the clipboard。

我按照Firefox Security preferences:

https://developer.mozilla.org/en/Midas/Security_preferences 

 

  1. Quit Firefox. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.
  2. Find your Firefox profile directory.
  3. Open the user.js file from that directory in a text editor. If there's no user.js file, create one.
  4. Add these lines to user.js:

 user_pref("capability.policy.policynames", "allowclipboard");

user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org");

user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");

user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

 * Change the url "http://www.mozilla.org" to the site for which you want to enable this function.

我应该用:http://blog.wenxuecity.com/dashboard/blogadd.php 吗?

试了上面的链接, 不行, 请给些指点, 如何恢复Cut/Copy/Paste功能

多谢!<-->